Options for a subscription.
More...
#include <transport/transport.hh>
Options for a subscription.
◆ SubscribeOptions()
◆ GetLatching()
bool GetLatching |
( |
| ) |
const |
|
inline |
Are we latching?
- Returns
- true if we're latching the latest message, false otherwise
◆ GetMsgType()
std::string GetMsgType |
( |
| ) |
const |
|
inline |
Get the type of the topic we're subscribed to.
- Returns
- The type of the topic we're subscribed to
◆ GetNode()
Get the node we're subscribed to.
- Returns
- The associated node
◆ GetTopic()
std::string GetTopic |
( |
| ) |
const |
|
inline |
Get the topic we're subscribed to.
- Returns
- The topic we're subscribed to
◆ Init() [1/2]
void Init |
( |
const std::string & |
_topic, |
|
|
NodePtr |
_node, |
|
|
bool |
_latching |
|
) |
| |
|
inline |
Initialize the options.
- Parameters
-
[in] | _topic | Topic we're subscribing to |
[in,out] | _node | The associated node |
[in] | _latching | If true, latch the latest message; if false, don't latch |
References gzthrow, and NULL.
Referenced by Node::Subscribe().
◆ Init() [2/2]
void Init |
( |
const std::string & |
_topic, |
|
|
NodePtr |
_node, |
|
|
bool |
_latching |
|
) |
| |
|
inline |
Initialize the options.
This version of init is only used when creating subscribers of raw data.
- Parameters
-
[in] | _topic | Topic we're subscribing to |
[in,out] | _node | The associated node |
[in] | _latching | If true, latch the latest message; if false, don't latch |
The documentation for this class was generated from the following file: