Packet.hh
Go to the documentation of this file.
friend std::ostream & operator<<(std::ostream &_out, const AdvertiseMessage &_msg)
Stream insertion operator.
Definition: Packet.hh:318
friend std::ostream & operator<<(std::ostream &_out, const SubscriptionMsg &_msg)
Stream insertion operator.
Definition: Packet.hh:196
Header included in each discovery message containing the version of the discovery protocol,...
Definition: Packet.hh:54
Subscription packet used in the discovery protocol for requesting information about a given topic.
Definition: Packet.hh:158
size_t Unpack(const char *_buffer)
Unserialize a stream of bytes into an AdvertiseMessage.
Definition: Packet.hh:306
size_t Pack(char *_buffer) const
Serialize the header. The caller has ownership of the buffer and is responsible for its [de]allocatio...
T endl(T... args)
void SetHeader(const transport::Header &_header)
Set the header of the message.
Definition: Packet.hh:264
size_t MsgLength() const
Get the total length of the message.
Definition: Packet.hh:279
STL class.
T at(T... args)
T & Publisher()
Get the publisher of this message.
Definition: Packet.hh:256
friend std::ostream & operator<<(std::ostream &_out, const Header &_header)
Stream insertion operator.
Definition: Packet.hh:130
Advertise packet used in the discovery protocol to broadcast information about the node advertising a...
Definition: Packet.hh:230
void SetPublisher(const T &_publisher)
Set the publisher of this message.
Definition: Packet.hh:272
static const std::vector< std::string > MsgTypesStr
Used for debugging the message type received/send.
Definition: Packet.hh:44
*brief Advertise a new service without any output parameter *In this version the callback is a free function *param [in] _topic Topic name associated to the service *param [in] _cb Callback to handle the service request with the *following void(*) const AdvertiseServiceOptions ReplyT const std::string _topic)
Definition: Node.hh:528
AdvertiseMessage(const Header &_header, const T &_publisher)
Constructor.
Definition: Packet.hh:238
Definition: AdvertiseOptions.hh:27
STL class.
size_t Pack(char *_buffer) const
Serialize the advertise message.
Definition: Packet.hh:287
transport::Header Header() const
Get the message header.
Definition: Packet.hh:248