Goby3
3.1.5a
2024.05.23
|
Represents a callback for a published data type (e.g. acked_func or expired_func) More...
#include <goby/middleware/transport/serialization_handlers.h>
Public Types | |
typedef std::function< void(const Data &data, const Metadata &md)> | HandlerType |
Public Types inherited from goby::middleware::SerializationHandlerBase< Metadata > | |
enum | SubscriptionAction { SubscriptionAction::SUBSCRIBE, SubscriptionAction::UNSUBSCRIBE, SubscriptionAction::PUBLISHER_CALLBACK } |
Public Member Functions | |
PublisherCallback (HandlerType handler) | |
PublisherCallback (HandlerType handler, const Data &data) | |
std::string::const_iterator | post (std::string::const_iterator b, std::string::const_iterator e, const Metadata &md) const override |
std::vector< char >::const_iterator | post (std::vector< char >::const_iterator b, std::vector< char >::const_iterator e, const Metadata &md) const override |
const char * | post (const char *b, const char *e, const Metadata &md) const override |
SerializationHandlerBase< Metadata >::SubscriptionAction | action () const override |
const std::string & | type_name () const override |
const Group & | subscribed_group () const override |
int | scheme () const override |
Public Member Functions inherited from goby::middleware::SerializationHandlerBase< Metadata > | |
SerializationHandlerBase ()=default | |
virtual | ~SerializationHandlerBase ()=default |
std::thread::id | thread_id () const |
virtual std::string | subscriber_id () const |
Represents a callback for a published data type (e.g. acked_func or expired_func)
Definition at line 280 of file serialization_handlers.h.
typedef std::function<void(const Data& data, const Metadata& md)> goby::middleware::PublisherCallback< Data, scheme_id, Metadata >::HandlerType |
Definition at line 283 of file serialization_handlers.h.
|
inline |
Definition at line 285 of file serialization_handlers.h.
|
inline |
Definition at line 290 of file serialization_handlers.h.
|
inlineoverridevirtual |
Implements goby::middleware::SerializationHandlerBase< Metadata >.
Definition at line 316 of file serialization_handlers.h.
|
inlineoverride |
Definition at line 311 of file serialization_handlers.h.
|
inlineoverride |
Definition at line 296 of file serialization_handlers.h.
|
inlineoverride |
Definition at line 303 of file serialization_handlers.h.
|
inlineoverridevirtual |
Implements goby::middleware::SerializationHandlerBase< Metadata >.
Definition at line 324 of file serialization_handlers.h.
|
inlineoverridevirtual |
Implements goby::middleware::SerializationHandlerBase< Metadata >.
Definition at line 323 of file serialization_handlers.h.
|
inlineoverridevirtual |
Implements goby::middleware::SerializationHandlerBase< Metadata >.
Definition at line 322 of file serialization_handlers.h.