MADARA  3.4.1
SpliceDataReaderListener.h
Go to the documentation of this file.
1 #ifndef SPLICE_DATAREADER_LISTENER_H
2 #define SPLICE_DATAREADER_LISTENER_H
3 
4 #include <string>
5 
8 
9 #include "ccpp_dds_dcps.h"
10 #include "madara/transport/splice/ccpp_SpliceKnowledgeUpdate.h"
11 
12 namespace madara
13 {
14 namespace transport
15 {
20 class SpliceDataReaderListener : public DDS::DataReaderListener
21 {
22 public:
24  const std::string& id, knowledge::ThreadSafeContext& context);
25 
27 
29 
30  void handle_assignment(Knowledge::Update& data);
31  void handle_multiassignment(Knowledge::Update& data);
32 
33 public:
38  DDS::DataReader_ptr, const DDS::RequestedDeadlineMissedStatus& status);
39 
44  DDS::DataReader_ptr, const DDS::RequestedIncompatibleQosStatus& status);
45 
49  void on_sample_rejected(
50  DDS::DataReader_ptr, const DDS::SampleRejectedStatus& status);
51 
56  DDS::DataReader_ptr, const DDS::LivelinessChangedStatus& status);
57 
61  void on_sample_lost(DDS::DataReader_ptr, const DDS::SampleLostStatus& status);
62 
67  DDS::DataReader_ptr reader, const DDS::SubscriptionMatchedStatus& status);
68 
69  void on_data_available(DDS::DataReader_ptr reader);
70 
71 private:
72  // NDDS variables
75 
76 }; // End of class NDDSListener
77 }
78 }
79 
80 #endif // SPLICE_DATAREADER_LISTENER_H
This class stores variables and their values for use by any entity needing state information in a thr...
Container for DDS-related callbacks (deprecated and unused)
void on_sample_rejected(DDS::DataReader_ptr, const DDS::SampleRejectedStatus &status)
DDS callback for sample rejected.
void on_requested_incompatible_qos(DDS::DataReader_ptr, const DDS::RequestedIncompatibleQosStatus &status)
DDS callback for incompatible qos.
void on_subscription_matched(DDS::DataReader_ptr reader, const DDS::SubscriptionMatchedStatus &status)
DDS callback for subscription matched.
void on_sample_lost(DDS::DataReader_ptr, const DDS::SampleLostStatus &status)
DDS callback for sample lost.
void on_liveliness_changed(DDS::DataReader_ptr, const DDS::LivelinessChangedStatus &status)
DDS callback for sample rejected.
SpliceDataReaderListener(const std::string &id, knowledge::ThreadSafeContext &context)
void on_requested_deadline_missed(DDS::DataReader_ptr, const DDS::RequestedDeadlineMissedStatus &status)
DDS callback for deadline being missed.
constexpr string_t string
Copyright(c) 2020 Galois.