Class for publishing MUDPI data.
More...
#include <rtctk/mudpiPub/publisher.hpp>
Class for publishing MUDPI data.
◆ UserSamples
◆ Publisher()
| rtctk::mudpiPub::Publisher::Publisher |
( |
const std::string & | pub_id, |
|
|
const PubCfg & | cfg, |
|
|
UserSamples | data = {} ) |
Constructs a new publisher object.
Note that provided configuration and user_samples must be consistent
- Parameters
-
| name | of the publisher object |
| cfg | configuration of the publisher object |
| data | user samples |
◆ ~Publisher()
| rtctk::mudpiPub::Publisher::~Publisher |
( |
| ) |
|
|
virtualdefault |
Destroys publisher object.
◆ GetId()
| const std::string & rtctk::mudpiPub::Publisher::GetId |
( |
| ) |
const |
|
inline |
Returns the name of the publisher object.
◆ Init()
| void rtctk::mudpiPub::Publisher::Init |
( |
| ) |
|
Resets the sample_id to zero.
◆ SendSample()
| void rtctk::mudpiPub::Publisher::SendSample |
( |
| ) |
|
Signals the worker thread to send a sample.
◆ UpdateDynamicConfig()
Updates dynamic configuration.
Note that provided configuration and user_samples must be consistent
- Parameters
-
| cfg | dynamic configuration of the publisher object |
| data | new user samples |
◆ WaitUntilSendingDone()
| void rtctk::mudpiPub::Publisher::WaitUntilSendingDone |
( |
| ) |
|
Blocks until the sample has been sent.
The documentation for this class was generated from the following files: