This class stores all the information about a publisher. It stores the topic name that publishes, addresses, UUIDs, scope, etc.
More...
#include <Publisher.hh>
|
| Publisher ()=default |
| Default constructor. More...
|
|
| Publisher (const std::string &_topic, const std::string &_addr, const std::string &_pUuid, const std::string &_nUuid, const AdvertiseOptions &_opts) |
| Constructor. More...
|
|
virtual | ~Publisher ()=default |
| Destructor. More...
|
|
std::string | Addr () const |
| Get the ZeroMQ address of the publisher. More...
|
|
virtual void | FillDiscovery (msgs::Discovery &_msg) const |
| Populate a discovery message. More...
|
|
std::string | NUuid () const |
| Get the node UUID of the publisher. More...
|
|
bool | operator!= (const Publisher &_pub) const |
| Inequality operator. This function checks if the given publisher does not have identical Topic, Addr, PUuid, NUuid, and Scope strings to this object. More...
|
|
bool | operator== (const Publisher &_pub) const |
| Equality operator. This function checks if the given publisher has identical Topic, Addr, PUuid, NUuid, and Scope strings to this object. More...
|
|
virtual const AdvertiseOptions & | Options () const |
| Get the advertised options. More...
|
|
std::string | PUuid () const |
| Get the process UUID of the publisher. return Process UUID. More...
|
|
void | SetAddr (const std::string &_addr) |
| Set ZeroMQ address of the publisher. More...
|
|
virtual void | SetFromDiscovery (const msgs::Discovery &_msg) |
| Set data from a discovery message. More...
|
|
void | SetNUuid (const std::string &_nUuid) |
| Set the node UUID of the publisher. More...
|
|
void | SetOptions (const AdvertiseOptions &_opts) |
| Set the advertised options. More...
|
|
void | SetPUuid (const std::string &_pUuid) |
| Set the process UUID of the publisher. More...
|
|
void | SetTopic (const std::string &_topic) |
| Set the topic name published by this publisher. More...
|
|
std::string | Topic () const |
| Get the topic published by this publisher. More...
|
|
This class stores all the information about a publisher. It stores the topic name that publishes, addresses, UUIDs, scope, etc.
gz/transport/Publisher.hh
◆ Publisher() [1/2]
◆ Publisher() [2/2]
Constructor.
- Parameters
-
[in] | _topic | Topic name. |
[in] | _addr | ZeroMQ address. |
[in] | _pUuid | Process UUID. |
[in] | _nUuid | node UUID. |
[in] | _opts | The advertise options. |
◆ ~Publisher()
◆ Addr()
Get the ZeroMQ address of the publisher.
- Returns
- ZeroMQ address.
- See also
- SetAddr.
◆ FillDiscovery()
virtual void FillDiscovery |
( |
msgs::Discovery & |
_msg | ) |
const |
|
virtual |
◆ NUuid()
Get the node UUID of the publisher.
- Returns
- Node UUID.
- See also
- SetNUuid.
◆ operator!=()
bool operator!= |
( |
const Publisher & |
_pub | ) |
const |
Inequality operator. This function checks if the given publisher does not have identical Topic, Addr, PUuid, NUuid, and Scope strings to this object.
- Parameters
-
[in] | _pub | The publisher to compare against. |
- Returns
- True if this object does not match the provided object.
◆ operator==()
bool operator== |
( |
const Publisher & |
_pub | ) |
const |
Equality operator. This function checks if the given publisher has identical Topic, Addr, PUuid, NUuid, and Scope strings to this object.
- Parameters
-
[in] | _pub | The publisher to compare against. |
- Returns
- True if this object matches the provided object.
◆ Options()
◆ PUuid()
Get the process UUID of the publisher. return Process UUID.
- See also
- SetPUuid.
◆ SetAddr()
Set ZeroMQ address of the publisher.
- Parameters
-
- See also
- Addr.
◆ SetFromDiscovery()
virtual void SetFromDiscovery |
( |
const msgs::Discovery & |
_msg | ) |
|
|
virtual |
◆ SetNUuid()
Set the node UUID of the publisher.
- Parameters
-
- See also
- NUuid.
◆ SetOptions()
Set the advertised options.
- Parameters
-
[in] | _opts | New advertised options. |
- See also
- Options.
◆ SetPUuid()
Set the process UUID of the publisher.
- Parameters
-
[in] | _pUuid | New process UUID. |
- See also
- PUuid.
◆ SetTopic()
Set the topic name published by this publisher.
- Parameters
-
[in] | _topic | New topic name. |
- See also
- Topic.
◆ Topic()
Get the topic published by this publisher.
- Returns
- Topic name.
- See also
- SetTopic.
◆ addr
ZeroMQ address of the publisher.
◆ nUuid
Node UUID of the publisher.
◆ pUuid
Process UUID of the publisher.
◆ topic
The documentation for this class was generated from the following file: