37 #ifndef FIX8_ZEROMQ_MBUS_
38 #define FIX8_ZEROMQ_MBUS_
41 #if defined FIX8_HAS_ZEROMQ_MBUS
54 class ZeromqMessage :
public GenericMessage
61 virtual ~ZeromqMessage() {}
66 class ZeromqBusSubscriber :
public MessageBusSubscriber
70 ZeromqBusSubscriber() {}
73 virtual ~ZeromqBusSubscriber() {}
76 virtual bool receive_message(
const GenericMessage *msg) {
return false; }
81 class ZeromqBus :
public MessageBus
88 virtual ~ZeromqBus() {}
91 virtual bool start() {
return true; }
94 virtual bool stop() {
return true; }
97 virtual bool publish(
const f8String& topic,
const ZeromqMessage *msg) {
return false; }
100 virtual bool subscribe(MessageBusSubscriber *subscriber,
const f8String& topic) {
return false; }
103 virtual MessageBusSubscriber *subscribe(
const f8String& topic) {
return nullptr; }
106 virtual bool unsubscribe(MessageBusSubscriber *subscriber,
const f8String& topic) {
return false; }
114 #endif // FIX8_HAS_ZEROMQ_MBUS
115 #endif // FIX8_ZEROMQ_MBUS_