Go to the documentation of this file.
11 #ifndef RTCTK_COMPONENTFRAMEWORK_DATAPATH_DDSSUB_HPP_
12 #define RTCTK_COMPONENTFRAMEWORK_DATAPATH_DDSSUB_HPP_
47 Subscriber *m_subscriber;
49 std::list<TypedDataReader *> m_data_readers;
56 DdsSub(std::string qos_library =
"RtcTk_Default_Library",
57 std::string qos_profile =
"RtcTk_Default_Profile");
119 return m_data_readers;
125 #endif // RTCTK_COMPONENTFRAMEWORK_DATAPATH_DDSSUB_HPP_
Structure that keeps together topic name and DDS Data Writer listener.
Definition: ddsSub.hpp:22
void CreateDataReaders()
Creates DDS Data Reader for all DDS topics.
Definition: ddsSub.cpp:249
Definition: commandReplier.cpp:20
DdsTopicReaderListener(const std::string &tn)
Definition: ddsSub.hpp:36
eprosima::fastdds::dds::DataReader TypedDataReader
Definition: ddsCommon.hpp:89
virtual ~DdsSub()
Definition: ddsSub.cpp:35
DdsTopicReaderListener(const std::string &tn, DataReaderListener *l, const std::string &mc)
Definition: ddsSub.hpp:28
DataReaderListener * listener
Definition: ddsSub.hpp:24
All functionallty needed to create DDS entities for DDS data subscribing is concentrated in this clas...
Definition: ddsSub.hpp:46
void EnableAllDataReaders()
Definition: ddsSub.cpp:181
void DumpDDSstatistics()
Dumps / logs varios DDS statistic like NACks, ACKs, ...
Definition: ddsSub.cpp:262
DdsSub(std::string qos_library="RtcTk_Default_Library", std::string qos_profile="RtcTk_Default_Profile")
Definition: ddsSub.cpp:29
void CreateSubscriber()
Creates DDS subscriber.
Definition: ddsSub.cpp:49
void CreateManyDataReaders(std::vector< DdsTopicReaderListener > const &)
create DDS topics and DDS readers for the given list (vector) of topic names and #DdsReaderListener I...
Definition: ddsSub.cpp:214
Declares common DDS class.
std::string topic_name
Definition: ddsSub.hpp:23
TypedDataReader * CreateDataReader(Topic *topic, DataReaderListener *listener=nullptr, std::string multicast_address="")
Creates DDS data reader for particular topic for topic of type: rtctk::AgnosticTopic.
Definition: ddsSub.cpp:101
std::string multicast_address
Definition: ddsSub.hpp:25
void DestroyAllDataReaders()
Destroys DDS Data Reader for all DDS topics.
Definition: ddsSub.cpp:238
std::list< TypedDataReader * > & GetDataReaders()
returns vector of all DDS Data writers
Definition: ddsSub.hpp:118
Common functionallty needed to create DDS entities like participant and topic that can be later used ...
Definition: dds.hpp:26
DdsTopicReaderListener(const std::string &tn, DataReaderListener *l)
Definition: ddsSub.hpp:32
void DestroyDataReader(TypedDataReader *dr, bool to_be_removed=true)
Destroys DDS data reader.
Definition: ddsSub.cpp:196