DDS-PSM-C++ 1.0 ISO C++ API for OpenSplice DDS |
#include <TSubscriber.hpp>
Public Types | |
typedef dds::sub::SubscriberListener | Listener |
Additional Inherited Members | |
![]() | |
DELEGATE_REF_T | impl_ |
Definition at line 35 of file TSubscriber.hpp.
typedef dds::sub::SubscriberListener dds::sub::TSubscriber< DELEGATE >::Listener |
Definition at line 40 of file TSubscriber.hpp.
dds::sub::TSubscriber< DELEGATE >::TSubscriber | ( | const ::dds::domain::DomainParticipant & | dp | ) |
Create a Subscriber
attached to the given domain participant. The subscriber QoS will be set to the default as provided by the domain participant.
dp | the domain participant that will own this subscriber. |
dds::sub::TSubscriber< DELEGATE >::TSubscriber | ( | const ::dds::domain::DomainParticipant & | dp, |
const dds::sub::qos::SubscriberQos & | qos, | ||
dds::sub::SubscriberListener * | listener = NULL , | ||
const dds::core::status::StatusMask & | mask = dds::core::status::StatusMask::all() | ||
) |
Create a Subscriber
attached to the given domain participant.
dp | the domain participant that will own this subscriber. |
qos | the subscriber qos |
listenr | the subscriber listener. |
mask | the listener event mask. |
dds::sub::TSubscriber< DELEGATE >::~TSubscriber | ( | ) |
dds::sub::qos::DataReaderQos dds::sub::TSubscriber< DELEGATE >::default_datareader_qos | ( | ) | const |
Get the default DataReader
QoS.
TSubscriber& dds::sub::TSubscriber< DELEGATE >::default_datareader_qos | ( | const dds::sub::qos::DataReaderQos & | qos | ) | const |
Set the default DataReader
QoS.
qos | the default DataReader QoS. |
void dds::sub::TSubscriber< DELEGATE >::listener | ( | Listener * | , |
const dds::core::status::StatusMask & | event_mask | ||
) |
Attach a listener to this.
listener | the listener |
event_mask | the event mask for the listener. |
Listener* dds::sub::TSubscriber< DELEGATE >::listener | ( | ) | const |
Get the Subscriber
listener.
void dds::sub::TSubscriber< DELEGATE >::notify_datareaders | ( | ) |
This operation invokes the operation on_data_available on the DataReaderListener objects attached to contained DataReader entities with a DATA_AVAILABLE status that is considered changed as described in Section 7.1.4.2.2, Changes in Read Communication Statuses.
const dds::domain::DomainParticipant& dds::sub::TSubscriber< DELEGATE >::participant | ( | ) | const |
Return the DomainParticipant
that owns this Subscriber.
const dds::sub::qos::SubscriberQos& dds::sub::TSubscriber< DELEGATE >::qos | ( | ) | const |
Get the Subscriber
QoS.
void dds::sub::TSubscriber< DELEGATE >::qos | ( | const dds::sub::qos::SubscriberQos & | the_qos | ) |
Set the Subscriber
QoS.
qos | the new QoS. |