|
RTC Toolkit 6.0.0
|
Class for publishing MUDPI data. More...
#include <rtctk/mudpiPub/publisher.hpp>
Public Types | |
| using | UserSamples = std::vector<std::vector<uint8_t>> |
| Type alias for provided user data. | |
Public Member Functions | |
| Publisher (const std::string &pub_id, const PubCfg &cfg, UserSamples data={}) | |
| Constructs a new publisher object. | |
| virtual | ~Publisher () |
| Destroys publisher object. | |
| void | SendSample () |
| Signals the worker thread to send a sample. | |
| void | WaitUntilSendingDone () |
| Blocks until the sample has been sent. | |
| void | Init () |
| Resets the sample_id to zero. | |
| void | UpdateDynamicConfig (const PubDynamicCfg &cfg, UserSamples user_samples={}) |
| Updates dynamic configuration. | |
| const std::string & | GetId () const |
| Returns the name of the publisher object. | |
Class for publishing MUDPI data.
| using rtctk::mudpiPub::Publisher::UserSamples = std::vector<std::vector<uint8_t>> |
Type alias for provided user data.
user data is basically a vector of blobs, where each element represents a sample.
| 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.
| pub_id | of the publisher object. |
| cfg | configuration of the publisher object. |
| data | user samples. |
|
virtualdefault |
Destroys publisher object.
|
inline |
Returns the name of the publisher object.
| void rtctk::mudpiPub::Publisher::Init | ( | ) |
Resets the sample_id to zero.
| void rtctk::mudpiPub::Publisher::SendSample | ( | ) |
Signals the worker thread to send a sample.
| void rtctk::mudpiPub::Publisher::UpdateDynamicConfig | ( | const PubDynamicCfg & | cfg, |
| UserSamples | user_samples = {} ) |
Updates dynamic configuration.
Note that provided configuration and user_samples must be consistent.
| cfg | dynamic configuration of the publisher object. |
| user_samples | new user samples. |
| void rtctk::mudpiPub::Publisher::WaitUntilSendingDone | ( | ) |
Blocks until the sample has been sent.