DDS-PSM-C++  1.0
ISO C++ API for OpenSplice DDS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AnyDataReaderListener.hpp
Go to the documentation of this file.
1 #ifndef OMG_DDS_SUB_ANY_DATA_READER_LISTENER_HPP_
2 #define OMG_DDS_SUB_ANY_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 
22 
23 namespace dds { namespace sub {
24 
25  class AnyDataReader;
26 
28  public:
29  typedef ::dds::core::smart_ptr_traits<AnyDataReaderListener>::ref_type ref_type;
30 
31  public:
32  virtual ~AnyDataReaderListener();
33 
34  public:
35  virtual void on_requested_deadline_missed(
36  AnyDataReader& the_reader,
38 
39  virtual void on_requested_incompatible_qos(
40  AnyDataReader& the_reader,
42 
43  virtual void on_sample_rejected(
44  AnyDataReader& the_reader,
45  const dds::core::status::SampleRejectedStatus& status) = 0;
46 
47  virtual void on_liveliness_changed(
48  AnyDataReader& the_reader,
50 
51  virtual void on_data_available(AnyDataReader& the_reader) = 0;
52 
53  virtual void on_subscription_matched(
54  AnyDataReader& the_reader,
56 
57  virtual void on_sample_lost(
58  AnyDataReader& the_reader,
59  const dds::core::status::SampleLostStatus& status) = 0;
60  };
61 
62 
64  public:
66 
67  public:
69  AnyDataReader& the_reader,
71 
73  AnyDataReader& the_reader,
75 
76  virtual void on_sample_rejected(
77  AnyDataReader& the_reader,
79 
80  virtual void on_liveliness_changed(
81  AnyDataReader& the_reader,
83 
84  virtual void on_data_available(AnyDataReader& the_reader) { }
85 
87  AnyDataReader& the_reader,
89 
90  virtual void on_sample_lost(
91  AnyDataReader& the_reader,
92  const dds::core::status::SampleLostStatus& status) { }
93  };
94 } }
95 
96 #endif /* OMG_DDS_SUB_ANY_DATA_READER_LISTENER_HPP_ */