|
Flyby SDK v1.0.2
|
The class used for publishing to the message bus. More...
#include <publisher.h>

Public Member Functions | |
| virtual bool | is_connected ()=0 |
| Check if the publisher is connected. | |
| virtual void | publish (const std::string &topic, const std::string &message, const std::string &source=std::string())=0 |
| Publish a message to the message bus. | |
| virtual void | publish (const std::string &topic, Message &message)=0 |
| Publish a message to the message bus. | |
| virtual std::shared_ptr< PublishObservable > | publish_observe (const std::string &topic, const std::string &message)=0 |
| Publish a message to the message bus. | |
Static Public Member Functions | |
| static std::shared_ptr< Publisher > | create (const std::string &client_id) |
| Creates a publisher handler. | |
The class used for publishing to the message bus.
This class is used only for publishing messages.
|
static |
Creates a publisher handler.
| client_id | - The ID of the user that is publishing. |
|
pure virtual |
Check if the publisher is connected.
Implemented in flyby::Client.
|
pure virtual |
Publish a message to the message bus.
| topic | - The topic to publish to. |
| message | - The string representation of the message. |
| source | - Optional. The source system of the message. |
|
pure virtual |
Publish a message to the message bus.
| topic | - The topic to publish to. |
| message | - The object representation of the message. |
|
nodiscardpure virtual |
Publish a message to the message bus.
| topic | - The topic to publish to. |
| message | - The string representation of the message. |