template <typename T>
{
public:
ExampleDataWriterListener() {}
public:
{
std::cout << "on_publication_matched callback" << std::endl;
std::cout <<
"total_count = " << status.
total_count() << std::endl;
std::cout <<
"current_count = " << status.
current_count() << std::endl;
std::cout << "current_count_peak = "
}
{
std::cout << "on_offered_incompatible_qos callback" << std::endl;
std::cout <<
"total_count = " << status.
total_count() << std::endl;
std::cout <<
"last_policy_id = " << status.
last_policy_id() << std::endl;
if (qos_seq.size() > 0) {
std::cout << "policy_id of one first incompatible Qos policy = "
<< qos_seq[0].policy_id() << std::endl;
}
}
{
std::cout << "on_offered_deadline_missed callback" << std::endl;
std::cout <<
"total_count = " << status.
total_count() << std::endl;
}
{
std::cout << "on_liveliness_lost callback" << std::endl;
std::cout <<
"total_count = " << status.
total_count() << std::endl;
}
};
Information about the status dds::core::status::StatusMask::liveliness_lost()
Definition: TStatus.hpp:139
int32_t total_count() const
Total cumulative number of times that a previously-alive dds::pub::DataWriter became not alive due to...
Definition: TStatus.hpp:149
int32_t total_count_change() const
The incremental changes in total_count since the last time the listener was called or the status was ...
Definition: TStatus.hpp:155
Information about the status dds::core::status::StatusMask::offered_deadline_missed()
Definition: TStatus.hpp:213
int32_t total_count_change() const
The incremental changes in total_count since the last time the listener was called or the status was ...
Definition: TStatus.hpp:229
const dds::core::InstanceHandle last_instance_handle() const
Handle to the last instance in the dds::pub::DataWriter for which an offered deadline was missed.
Definition: TStatus.hpp:235
int32_t total_count() const
Total cumulative count of the number of times the dds::pub::DataWriter failed to write within its off...
Definition: TStatus.hpp:223
Information about the status dds::core::status::StatusMask::offered_incompatible_qos()
Definition: TStatus.hpp:280
int32_t total_count_change() const
The incremental changes in total_count since the last time the listener was called or the status was ...
Definition: TStatus.hpp:296
int32_t total_count() const
Total cumulative number of times the concerned dds::pub::DataWriter discovered a dds::sub::DataReader...
Definition: TStatus.hpp:290
dds::core::policy::QosPolicyId last_policy_id() const
The dds::core::policy::QosPolicyId of one of the policies that was found to be incompatible the last ...
Definition: TStatus.hpp:302
const dds::core::policy::QosPolicyCountSeq policies() const
A list containing for each policy the total number of times that the concerned dds::pub::DataWriter d...
Definition: TStatus.hpp:308
Information about the status dds::core::status::StatusMask::publication_matched()
Definition: TStatus.hpp:361
int32_t total_count_change() const
The changes in total_count since the last time the listener was called or the status was read.
Definition: TStatus.hpp:377
int32_t current_count() const
The current number of DataReaders with which this dds::pub::DataWriter is matched.
Definition: TStatus.hpp:383
const dds::core::InstanceHandle last_subscription_handle() const
This InstanceHandle can be used to look up which remote dds::sub::DataReader was the last to cause th...
Definition: TStatus.hpp:395
int32_t total_count() const
The total cumulative number of times that this dds::pub::DataWriter discovered a "match" with a dds::...
Definition: TStatus.hpp:371
int32_t current_count_peak() const
<<extension>> Greatest number of DataReaders that matched this dds::pub::DataWriter simultaneously.
Definition: rti/core/status/Status.hpp:564
int32_t current_count_change() const
The change in current_count since the last time the listener was called or the status was read.
Definition: TStatus.hpp:389
A convenience implementation of DataWriterListener where all methods are overridden to do nothing.
Definition: DataWriterListener.hpp:189
virtual void on_liveliness_lost(dds::pub::DataWriter< T > &, const dds::core::status::LivelinessLostStatus &)
No-op.
Definition: DataWriterListener.hpp:216
virtual void on_offered_deadline_missed(dds::pub::DataWriter< T > &, const dds::core::status::OfferedDeadlineMissedStatus &)
No-op.
Definition: DataWriterListener.hpp:198
virtual void on_publication_matched(dds::pub::DataWriter< T > &, const dds::core::status::PublicationMatchedStatus &)
No-op.
Definition: DataWriterListener.hpp:225
virtual void on_offered_incompatible_qos(dds::pub::DataWriter< T > &, const dds::core::status::OfferedIncompatibleQosStatus &)
No-op.
Definition: DataWriterListener.hpp:207
std::vector< QosPolicyCount > QosPolicyCountSeq
A vector of QosPolicyCount.
Definition: dds/core/policy/QosPolicyCount.hpp:38