MADARA  3.2.3
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:
25 
27 
29 
30  void handle_assignment (Knowledge::Update & data);
31  void handle_multiassignment (Knowledge::Update & data);
32 
33  public:
37  void on_requested_deadline_missed (DDS::DataReader_ptr,
38  const DDS::RequestedDeadlineMissedStatus & status);
39 
43  void on_requested_incompatible_qos (DDS::DataReader_ptr,
44  const DDS::RequestedIncompatibleQosStatus & status);
45 
49  void on_sample_rejected (DDS::DataReader_ptr,
50  const DDS::SampleRejectedStatus & status);
51 
55  void on_liveliness_changed (DDS::DataReader_ptr,
56  const DDS::LivelinessChangedStatus & status);
57 
61  void on_sample_lost (DDS::DataReader_ptr,
62  const DDS::SampleLostStatus & status);
63 
67  void on_subscription_matched (DDS::DataReader_ptr reader,
68  const DDS::SubscriptionMatchedStatus & status);
69 
70  void on_data_available(DDS::DataReader_ptr reader);
71  private:
72 
73  // NDDS variables
76 
77  }; // End of class NDDSListener
78  }
79 }
80 
81 #endif // SPLICE_DATAREADER_LISTENER_H
This class stores variables and their values for use by any entity needing state information in a thr...
static struct madara::knowledge::tags::string_t string
void on_requested_incompatible_qos(DDS::DataReader_ptr, const DDS::RequestedIncompatibleQosStatus &status)
DDS callback for incompatible qos.
void on_sample_lost(DDS::DataReader_ptr, const DDS::SampleLostStatus &status)
DDS callback for sample lost.
void on_requested_deadline_missed(DDS::DataReader_ptr, const DDS::RequestedDeadlineMissedStatus &status)
DDS callback for deadline being missed.
void on_subscription_matched(DDS::DataReader_ptr reader, const DDS::SubscriptionMatchedStatus &status)
DDS callback for subscription matched.
SpliceDataReaderListener(const std::string &id, knowledge::ThreadSafeContext &context)
Copyright (c) 2015 Carnegie Mellon University.
Container for DDS-related callbacks (deprecated and unused)
void on_liveliness_changed(DDS::DataReader_ptr, const DDS::LivelinessChangedStatus &status)
DDS callback for sample rejected.
void on_sample_rejected(DDS::DataReader_ptr, const DDS::SampleRejectedStatus &status)
DDS callback for sample rejected.