DDS-PSM-C++  1.0
ISO C++ API for OpenSplice DDS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
DataReaderListener.hpp
Go to the documentation of this file.
1 #ifndef OMG_DDS_SUB_DATA_READER_LISTENER_HPP_
2 #define OMG_DDS_SUB_DATA_READER_LISTENER_HPP_
3 
4 /* Copyright 2010, Object Management Group, Inc.
5  * Copyright 2010, PrismTech, Corp.
6  * Copyright 2010, Real-Time Innovations, Inc.
7  * All rights reserved.
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
23 
24 namespace dds { namespace sub {
25  template <typename T>
27 
28  template <typename T>
30 } }
31 
32 template <typename T>
34 public:
35  typedef ::dds::core::smart_ptr_traits<DataReaderListener>::ref_type ref_type;
36 
37 public:
38  virtual ~DataReaderListener();
39 
40 public:
41  virtual void on_requested_deadline_missed(
42  DataReader<T>& the_reader,
44 
45  virtual void on_requested_incompatible_qos(
46  DataReader<T>& the_reader,
48 
49  virtual void on_sample_rejected(
50  DataReader<T>& the_reader,
51  const dds::core::status::SampleRejectedStatus& status) = 0;
52 
53  virtual void on_liveliness_changed(
54  DataReader<T>& the_reader,
56 
57  virtual void on_data_available(DataReader<T>& the_reader) = 0;
58 
59  virtual void on_subscription_matched(
60  DataReader<T>& the_reader,
62 
63  virtual void on_sample_lost(
64  DataReader<T>& the_reader,
65  const dds::core::status::SampleLostStatus& status) = 0;
66 };
67 
68 
69 template <typename T>
71 public:
72  typedef ::dds::core::smart_ptr_traits<NoOpDataReaderListener>::ref_type ref_type;
73 
74 public:
75  virtual ~NoOpDataReaderListener();
76 
77 public:
78  virtual void on_requested_deadline_missed(
79  DataReader<T>& the_reader,
81 
82  virtual void on_requested_incompatible_qos(
83  DataReader<T>& the_reader,
85 
86  virtual void on_sample_rejected(
87  DataReader<T>& the_reader,
89 
90  virtual void on_liveliness_changed(
91  DataReader<T>& the_reader,
93 
94  virtual void on_data_available(DataReader<T>& the_reader);
95 
96  virtual void on_subscription_matched(
97  DataReader<T>& the_reader,
99 
100  virtual void on_sample_lost(
101  DataReader<T>& the_reader,
103 };
104 
105 #endif /* OMG_DDS_SUB_DATA_READER_LISTENER_HPP_ */