Most generic node type of SPSP.
More...
#include <node.hpp>
Most generic node type of SPSP.
Doesn't do anything at all.
Definition at line 49 of file node.hpp.
◆ INode()
Constructs a new generic node.
Definition at line 56 of file node.hpp.
◆ publish()
| virtual bool SPSP::INode::publish |
( |
const std::string & |
topic, |
|
|
const std::string & |
payload |
|
) |
| |
|
pure virtual |
Publishes payload to topic.
This is primary endpoint for publishing data locally on all node types.
- Parameters
-
| topic | Topic |
| payload | Payload |
- Returns
- true Delivery successful
-
false Delivery failed
◆ resubscribeAll()
| virtual void SPSP::INode::resubscribeAll |
( |
| ) |
|
|
pure virtual |
Resubscribes to all topics.
◆ subscribe()
| virtual bool SPSP::INode::subscribe |
( |
const std::string & |
topic, |
|
|
SubscribeCb |
cb |
|
) |
| |
|
pure virtual |
Subscribes to topic.
This is primary endpoint for subscribing locally on all node types.
- Parameters
-
| topic | Topic |
| cb | Callback function |
- Returns
- true Subscribe successful
-
false Subscribe failed
◆ unsubscribe()
| virtual bool SPSP::INode::unsubscribe |
( |
const std::string & |
topic | ) |
|
|
pure virtual |
Unsubscribes from topic.
This is primary endpoint for unsubscribing locally on all node types.
- Parameters
-
- Returns
- true Unsubscribe successful
-
false Unsubscribe failed
The documentation for this class was generated from the following file: