gz/transport/AdvertiseOptions.hh
size_t MsgLength() const
Get the total length of the message.
bool operator==(const AdvertiseServiceOptions &_other) const
Equality operator. This function checks if the given AdvertiseMessageOptions has identical content to...
void SetMsgsPerSec(const uint64_t _newMsgsPerSec)
Set the maximum number of messages per second to be published. Note that we calculate the minimum per...
bool operator!=(const AdvertiseOptions &_other) const
Inequality operator. This function checks if the given options do not have identical values to this o...
@ HOST
Topic/service only available to subscribers in the same machine as the publisher.
Definition: gz/transport/AdvertiseOptions.hh:28
bool operator!=(const AdvertiseMessageOptions &_other) const
Inequality operator. This function checks if the given options do not have identical values to this o...
friend std::ostream & operator<<(std::ostream &_out, const AdvertiseMessageOptions &_other)
Stream insertion operator.
Definition: gz/transport/AdvertiseOptions.hh:184
AdvertiseServiceOptions()
Constructor.
bool Throttled() const
Whether the publication has been throttled.
friend std::ostream & operator<<(std::ostream &_out, const AdvertiseOptions &_other)
Stream insertion operator.
Definition: gz/transport/AdvertiseOptions.hh:91
void SetScope(const Scope_t &_scope)
Set the scope of the topic or service.
A class for customizing the publication options for a topic or service advertised....
Definition: gz/transport/AdvertiseOptions.hh:59
size_t Unpack(const char *_buffer)
Unserialize the options.
size_t Pack(char *_buffer) const
Serialize the options. The caller has ownership of the buffer and is responsible for its [de]allocati...
const Scope_t & Scope() const
Get the scope used in this topic/service.
A class for customizing the publication options for a topic advertised. E.g.: Set the rate of message...
Definition: gz/transport/AdvertiseOptions.hh:150
AdvertiseMessageOptions & operator=(const AdvertiseMessageOptions &_other)
Assignment operator.
size_t Pack(char *_buffer) const
Serialize the options. The caller has ownership of the buffer and is responsible for its [de]allocati...
STL class.
bool operator!=(const AdvertiseServiceOptions &_other) const
Inequality operator. This function checks if the given options do not have identical values to this o...
size_t Unpack(const char *_buffer)
Deserialize and set the options. The input buffer is unpacked and used to set this object's options.
friend std::ostream & operator<<(std::ostream &_out, const AdvertiseServiceOptions &_other)
Stream insertion operator.
Definition: gz/transport/AdvertiseOptions.hh:281
AdvertiseServiceOptions & operator=(const AdvertiseServiceOptions &_other)
Assignment operator.
uint64_t MsgsPerSec() const
Get the maximum number of messages per second to be published.
size_t Pack(char *_buffer) const
Serialize the options. The caller has ownership of the buffer and is responsible for its [de]allocati...
Scope_t
This strongly typed enum defines the different options for the scope of a topic/service.
Definition: gz/transport/AdvertiseOptions.hh:42
size_t MsgLength() const
Get the total length of the message.
virtual ~AdvertiseServiceOptions()
Destructor.
T endl(T... args)
AdvertiseMessageOptions()
Constructor.
bool operator==(const AdvertiseMessageOptions &_other) const
Equality operator. This function checks if the given AdvertiseMessageOptions has identical content to...
A class for customizing the publication options for a service advertised.
Definition: gz/transport/AdvertiseOptions.hh:247
AdvertiseOptions & operator=(const AdvertiseOptions &_other)
Assignment operator.
size_t MsgLength() const
Get the total length of the message.
virtual ~AdvertiseMessageOptions()
Destructor.
@ PROCESS
Topic/service only available to subscribers in the same process as the publisher.
bool operator==(const AdvertiseOptions &_other) const
Equality operator. This function checks if the given AdvertiseOptions has identical content to this o...
size_t Unpack(const char *_buffer)
Unserialize the options.