Subscription packet used in the discovery protocol for requesting information about a given topic.
More...
#include <ignition/transport/Packet.hh>
Subscription packet used in the discovery protocol for requesting information about a given topic.
| ignition::transport::SubscriptionMsg::SubscriptionMsg |
( |
| ) |
|
|
default |
| ignition::transport::SubscriptionMsg::SubscriptionMsg |
( |
const transport::Header & |
_header, |
|
|
const std::string & |
_topic |
|
) |
| |
Constructor.
- Parameters
-
| [in] | _header | Message header. |
| [in] | _topic | Topic name. |
Get the message header.
- Returns
- Reference to the message header.
- See also
- SetHeader.
| size_t ignition::transport::SubscriptionMsg::MsgLength |
( |
| ) |
const |
| size_t ignition::transport::SubscriptionMsg::Pack |
( |
char * |
_buffer | ) |
const |
| void ignition::transport::SubscriptionMsg::SetHeader |
( |
const transport::Header & |
_header | ) |
|
Set the header of the message.
- Parameters
-
| [in] | _header | Message header. |
- See also
- Header.
| void ignition::transport::SubscriptionMsg::SetTopic |
( |
const std::string & |
_topic | ) |
|
Set the topic.
- Parameters
-
- See also
- Topic.
| std::string ignition::transport::SubscriptionMsg::Topic |
( |
| ) |
const |
Get the topic.
- Returns
- Topic name.
- See also
- SetTopic.
| size_t ignition::transport::SubscriptionMsg::Unpack |
( |
char * |
_buffer | ) |
|
Unserialize a stream of bytes into a Sub.
- Parameters
-
| [out] | _buffer | Unpack the body from the buffer. |
- Returns
- The number of bytes from the body.
| std::ostream& operator<< |
( |
std::ostream & |
_out, |
|
|
const SubscriptionMsg & |
_msg |
|
) |
| |
|
friend |
Stream insertion operator.
- Parameters
-
| [out] | _out | The output stream. |
| [in] | _msg | SubscriptionMsg message to write to the stream. |
The documentation for this class was generated from the following file: