Publisher.hh
Go to the documentation of this file.
A class for customizing the publication options for a topic advertised. E.g.: Set the rate of message...
Definition: AdvertiseOptions.hh:152
A class for customizing the publication options for a topic or service advertised....
Definition: AdvertiseOptions.hh:60
A class for customizing the publication options for a service advertised.
Definition: AdvertiseOptions.hh:249
A discovery class that implements a distributed topic discovery protocol. It uses UDP multicast for s...
Definition: Discovery.hh:118
This class stores all the information about a message publisher.
Definition: Publisher.hh:223
MessagePublisher & operator=(const MessagePublisher &_other)
Assignment operator.
MessagePublisher(const std::string &_topic, const std::string &_addr, const std::string &_ctrl, const std::string &_pUuid, const std::string &_nUuid, const std::string &_msgTypeName, const AdvertiseMessageOptions &_opts)
Constructor.
bool operator==(const MessagePublisher &_pub) const
Equality operator. This function checks if the given message publisher has identical Topic,...
MessagePublisher(const MessagePublisher &_other)
Copy constructor.
bool operator!=(const MessagePublisher &_pub) const
Inequality operator. This function checks if the given message publisher does not have identical Topi...
virtual ~MessagePublisher()=default
Destructor.
MessagePublisher()=default
Default constructor.
This class stores all the information about a publisher. It stores the topic name that publishes,...
Definition: Publisher.hh:45
std::string addr
ZeroMQ address of the publisher.
Definition: Publisher.hh:203
void SetAddr(const std::string &_addr)
Set ZeroMQ address of the publisher.
std::string pUuid
Process UUID of the publisher.
Definition: Publisher.hh:206
std::string Addr() const
Get the ZeroMQ address of the publisher.
std::string Topic() const
Get the topic published by this publisher.
void SetNUuid(const std::string &_nUuid)
Set the node UUID of the publisher.
std::string nUuid
Node UUID of the publisher.
Definition: Publisher.hh:209
void SetTopic(const std::string &_topic)
Set the topic name published by this publisher.
void SetPUuid(const std::string &_pUuid)
Set the process UUID of the publisher.
virtual const AdvertiseOptions & Options() const
Get the advertised options.
Publisher(const std::string &_topic, const std::string &_addr, const std::string &_pUuid, const std::string &_nUuid, const AdvertiseOptions &_opts)
Constructor.
void SetOptions(const AdvertiseOptions &_opts)
Set the advertised options.
std::string PUuid() const
Get the process UUID of the publisher. return Process UUID.
This class stores all the information about a service publisher.
Definition: Publisher.hh:356
ServicePublisher()=default
Default constructor.
ServicePublisher(const ServicePublisher &_other)
Copy constructor.
bool operator!=(const ServicePublisher &_srv) const
Inequality operator. This function checks if the given service does not have identical Topic,...
bool operator==(const ServicePublisher &_srv) const
Equality operator. This function checks if the given service has identical Topic, Addr,...
virtual ~ServicePublisher()=default
Destructor.
ServicePublisher(const std::string &_topic, const std::string &_addr, const std::string &_id, const std::string &_pUuid, const std::string &_nUuid, const std::string &_reqType, const std::string &_repType, const AdvertiseServiceOptions &_opts)
Constructor.
T endl(T... args)
Definition: AdvertiseOptions.hh:29
STL namespace.