Go to the documentation of this file.
11 #ifndef RTCTK_COMPONENTFRAMEWORK_DATAPATH_DDSPUB_HPP_
12 #define RTCTK_COMPONENTFRAMEWORK_DATAPATH_DDSPUB_HPP_
40 Publisher *m_publisher;
42 std::list<TypedDataWriter *> m_data_writers;
49 DdsPub(std::string qos_library =
"RtcTk_Default_Library",
50 std::string qos_profile =
"RtcTk_Default_Profile");
115 return m_data_writers;
121 #endif // RTCTK_COMPONENTFRAMEWORK_DATAPATH_DDSPUB_HPP_
eprosima::fastdds::dds::DataWriter TypedDataWriter
Definition: ddsCommon.hpp:88
DdsPub(std::string qos_library="RtcTk_Default_Library", std::string qos_profile="RtcTk_Default_Profile")
Definition: ddsPub.cpp:24
TypedDataWriter * CreateDataWriter(Topic *topic, DataWriterListener *listener=nullptr)
Creates DDS writer for particular topic for topic of type: rtctk::AgnosticTopic.
Definition: ddsPub.cpp:95
void DumpDDSstatistics()
Dumps / logs varios DDS statistic like NACks, ACKs, ...
Definition: ddsPub.cpp:230
Definition: commandReplier.cpp:20
void DestroyPublisher()
Destroys DDS publisher.
Definition: ddsPub.cpp:77
void CreateManyDataWriters(std::vector< DdsTopicWriterListener > const &)
create DDS topics and DDS writers for the given list (vector) of topic names and #DdsWriterListener I...
Definition: ddsPub.cpp:176
void CreateDataWriters()
Creates DDS Data Writer for all DDS topics.
Definition: ddsPub.cpp:215
void DestroyDataWriter(TypedDataWriter *dw, bool to_be_removed=true)
Destroys DDS data writer.
Definition: ddsPub.cpp:158
void DestroyAllDataWriters()
Destroys DDS Data Writer for all DDS topics.
Definition: ddsPub.cpp:204
DdsTopicWriterListener(const std::string &tn, DataWriterListener *l)
Definition: ddsPub.hpp:25
DataWriterListener * listener
Definition: ddsPub.hpp:23
All functionallty needed to create DDS entities for DDS data publishing is concentrated in this class...
Definition: ddsPub.hpp:39
std::list< TypedDataWriter * > & GetDataWriters()
returns vector of all DDS Data writers
Definition: ddsPub.hpp:114
virtual ~DdsPub()
Definition: ddsPub.cpp:30
std::string topic_name
Definition: ddsPub.hpp:22
DdsTopicWriterListener(const std::string &tn)
Definition: ddsPub.hpp:29
void CreatePublisher()
Creates DDS publisher.
Definition: ddsPub.cpp:38
Declares common DDS class.
Structure that keeps together topic name and DDS Data Writer listener.
Definition: ddsPub.hpp:21
Common functionallty needed to create DDS entities like participant and topic that can be later used ...
Definition: dds.hpp:26