Cyclone ISO C++ API Reference Guide
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
25 {
26 namespace sub
27 {
28 template <typename T>
29 class DataReaderListener;
30 
31 template <typename T>
33 }
34 }
35 
127 template <typename T>
129 {
130 public:
132  typedef typename ::dds::core::smart_ptr_traits<DataReaderListener>::ref_type ref_type;
135 public:
137  virtual ~DataReaderListener() { }
140 public:
158  virtual void on_requested_deadline_missed(
159  DataReader<T>& reader,
161 
185  virtual void on_requested_incompatible_qos(
186  DataReader<T>& reader,
188 
209  virtual void on_sample_rejected(
210  DataReader<T>& reader,
211  const dds::core::status::SampleRejectedStatus& status) = 0;
212 
231  virtual void on_liveliness_changed(
232  DataReader<T>& reader,
234 
265  virtual void on_data_available(DataReader<T>& reader) = 0;
266 
293  virtual void on_subscription_matched(
294  DataReader<T>& reader,
296 
305  virtual void on_sample_lost(
306  DataReader<T>& reader,
307  const dds::core::status::SampleLostStatus& status) = 0;
308 };
309 
310 
327 template <typename T>
328 class dds::sub::NoOpDataReaderListener : public virtual DataReaderListener<T>
329 {
334 public:
335  typedef typename ::dds::core::smart_ptr_traits<NoOpDataReaderListener>::ref_type ref_type;
336 
337 public:
338  virtual ~NoOpDataReaderListener() { }
339 
340 public:
341  virtual void on_requested_deadline_missed(
342  DataReader<T>&,
344 
345  virtual void on_requested_incompatible_qos(
346  DataReader<T>&,
348 
349  virtual void on_sample_rejected(
350  DataReader<T>&,
352 
353  virtual void on_liveliness_changed(
354  DataReader<T>&,
356 
357  virtual void on_data_available(
358  DataReader<T>&) { }
359 
360  virtual void on_subscription_matched(
361  DataReader<T>&,
363 
364  virtual void on_sample_lost(
365  DataReader<T>&,
368 };
369 
370 #endif /* OMG_DDS_SUB_DATA_READER_LISTENER_HPP_ */
dds::core::status::RequestedDeadlineMissedStatus
Definition: Status.hpp:226
dds::core::status::SubscriptionMatchedStatus
Definition: Status.hpp:399
dds::sub::NoOpDataReaderListener
DataReader events Listener.
Definition: DataReaderListener.hpp:32
dds::core::status::LivelinessChangedStatus
Definition: Status.hpp:145
dds::sub::DataReaderListener::on_liveliness_changed
virtual void on_liveliness_changed(DataReader< T > &reader, const dds::core::status::LivelinessChangedStatus &status)=0
dds::core::status::SampleLostStatus
Definition: Status.hpp:61
dds
Definition: array.hpp:30
dds::sub::DataReaderListener::on_subscription_matched
virtual void on_subscription_matched(DataReader< T > &reader, const dds::core::status::SubscriptionMatchedStatus &status)=0
dds::sub::DataReaderListener::on_requested_incompatible_qos
virtual void on_requested_incompatible_qos(DataReader< T > &reader, const dds::core::status::RequestedIncompatibleQosStatus &status)=0
Status.hpp
dds::sub::DataReaderListener
DataReader events Listener.
Definition: DataReader.hpp:37
dds::sub::DataReaderListener::on_sample_lost
virtual void on_sample_lost(DataReader< T > &reader, const dds::core::status::SampleLostStatus &status)=0
dds::sub::DataReaderListener::on_requested_deadline_missed
virtual void on_requested_deadline_missed(DataReader< T > &reader, const dds::core::status::RequestedDeadlineMissedStatus &status)=0
dds::core::status::SampleRejectedStatus
Definition: Status.hpp:85
dds::sub::DataReaderListener::on_data_available
virtual void on_data_available(DataReader< T > &reader)=0
dds::core::status::RequestedIncompatibleQosStatus
Definition: Status.hpp:307
dds::sub::DataReaderListener::on_sample_rejected
virtual void on_sample_rejected(DataReader< T > &reader, const dds::core::status::SampleRejectedStatus &status)=0