fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::MBUS::MessageBus Class Reference

Encapsulates a message bus context. More...

#include <messagebus.hpp>

Public Member Functions

 MessageBus ()
 
virtual ~MessageBus ()
 Dtor. More...
 
virtual bool start ()
 
virtual bool stop ()
 
virtual bool publish (const f8String &topic, const GenericMessage *msg)
 
virtual bool subscribe (MessageBusSubscriber *subscriber, const f8String &topic)
 
virtual MessageBusSubscribersubscribe (const f8String &topic)
 
virtual bool unsubscribe (MessageBusSubscriber *subscriber, const f8String &topic)
 

Detailed Description

Encapsulates a message bus context.

Definition at line 77 of file messagebus.hpp.

Constructor & Destructor Documentation

FIX8::MBUS::MessageBus::MessageBus ( )
inline

Ctor.

Definition at line 81 of file messagebus.hpp.

81 {}
virtual FIX8::MBUS::MessageBus::~MessageBus ( )
inlinevirtual

Dtor.

Definition at line 84 of file messagebus.hpp.

84 {}

Member Function Documentation

virtual bool FIX8::MBUS::MessageBus::publish ( const f8String topic,
const GenericMessage msg 
)
inlinevirtual

Publishes a message to all aubscribers for given topic

Definition at line 93 of file messagebus.hpp.

93 { return false; }
virtual bool FIX8::MBUS::MessageBus::start ( )
inlinevirtual

Starts the messaging subsystem

Definition at line 87 of file messagebus.hpp.

87 { return true; }
virtual bool FIX8::MBUS::MessageBus::stop ( )
inlinevirtual

Stops the messaging subsystem

Definition at line 90 of file messagebus.hpp.

90 { return true; }
virtual bool FIX8::MBUS::MessageBus::subscribe ( MessageBusSubscriber subscriber,
const f8String topic 
)
inlinevirtual

Creates a subscription for the given topic

Definition at line 96 of file messagebus.hpp.

96 { return false; }
virtual MessageBusSubscriber* FIX8::MBUS::MessageBus::subscribe ( const f8String topic)
inlinevirtual

Creates a subscription for the given topic, returns new subscriber

Definition at line 99 of file messagebus.hpp.

99 { return nullptr; }
virtual bool FIX8::MBUS::MessageBus::unsubscribe ( MessageBusSubscriber subscriber,
const f8String topic 
)
inlinevirtual

Removes a subscription for a given subscriber

Definition at line 102 of file messagebus.hpp.

102 { return false; }

The documentation for this class was generated from the following file: