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