#include <ddtPublisher.hpp>
| DdtPublisher () |
|
virtual | ~DdtPublisher () |
|
static std::unique_ptr< mal::ps::InstancePublisher< datatransfer::DataPacket >, std::default_delete< mal::ps::InstancePublisher< datatransfer::DataPacket > > > | CreatePublisher (const std::string &data_stream_identifier, const std::string &publishing_uri, const int32_t latency, const int32_t deadline, DdtLogger *logger) |
|
static std::unique_ptr< mal::ps::InstancePublisher< datatransfer::NotificationSample >, std::default_delete< mal::ps::InstancePublisher< datatransfer::NotificationSample > > > | CreateNotifier (const std::string &data_stream_identifier, const int32_t latency, const int32_t deadline, const int32_t notification_port, DdtLogger *logger) |
|
This class provides the functionality to create MAL Publishers used for publishing data packets or for notifying other components that new data is available.
◆ DdtPublisher()
DdtPublisher::DdtPublisher |
( |
| ) |
|
|
default |
◆ ~DdtPublisher()
DdtPublisher::~DdtPublisher |
( |
| ) |
|
|
virtualdefault |
◆ CreateNotifier()
std::unique_ptr< mal::ps::InstancePublisher< datatransfer::NotificationSample >, std::default_delete< mal::ps::InstancePublisher< datatransfer::NotificationSample > > > DdtPublisher::CreateNotifier |
( |
const std::string & | data_stream_identifier, |
|
|
const int32_t | latency, |
|
|
const int32_t | deadline, |
|
|
const int32_t | notification_port, |
|
|
DdtLogger * | logger ) |
|
static |
Creates a MAL publisher used for notifications.
- Parameters
-
data_stream_identifier | The data stream identifier. |
latency | A MAL QoS parameter. Shall be the maximum time a sample may remain in-transit between the publisher and subscriber in [ms]. |
deadline | A MAL QoS parameter. Shall be the maximum age of a sample in [s]. |
notification_port | The port used for notifications. |
logger | A DDT logger object (no transfer of ownership). |
◆ CreatePublisher()
std::unique_ptr< mal::ps::InstancePublisher< datatransfer::DataPacket >, std::default_delete< mal::ps::InstancePublisher< datatransfer::DataPacket > > > DdtPublisher::CreatePublisher |
( |
const std::string & | data_stream_identifier, |
|
|
const std::string & | publishing_uri, |
|
|
const int32_t | latency, |
|
|
const int32_t | deadline, |
|
|
DdtLogger * | logger ) |
|
static |
Creates a MAL publisher used for publishing data.
- Parameters
-
data_stream_identifier | The data stream identifier. |
publishing_uri | The publishing URI. |
latency | A MAL QoS parameter. Shall be the maximum time a sample may remain in-transit between the publisher and subscriber in [ms]. |
deadline | A MAL QoS parameter. Shall be the maximum age of a sample in [s]. |
logger | A DDT logger object (no transfer of ownership). |
The documentation for this class was generated from the following files: