1 #ifndef ZSERIO_IPUBSUB_H_INC
2 #define ZSERIO_IPUBSUB_H_INC
58 StringView topic,
const std::shared_ptr<OnTopicCallback>& callback,
void* context) = 0;
virtual ~OnTopicCallback()=default
virtual void operator()(StringView topic, Span< const uint8_t > data)=0
virtual SubscriptionId subscribe(StringView topic, const std::shared_ptr< OnTopicCallback > &callback, void *context)=0
virtual void unsubscribe(SubscriptionId id)=0
virtual void publish(StringView topic, Span< const uint8_t > data, void *context)=0
virtual ~IPubsub()=default