DDS-PSM-C++
1.0
ISO C++ API for OpenSplice DDS
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
src
hpp
dds
sub
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
22
#include <
dds/core/status/Status.hpp
>
23
24
namespace
dds {
namespace
sub {
25
template
<
typename
T>
26
class
DataReaderListener
;
27
28
template
<
typename
T>
29
class
NoOpDataReaderListener
;
30
} }
31
32
template
<
typename
T>
33
class
dds::sub::DataReaderListener
{
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,
43
const
dds::core::status::RequestedDeadlineMissedStatus
& status) = 0;
44
45
virtual
void
on_requested_incompatible_qos
(
46
DataReader<T>
& the_reader,
47
const
dds::core::status::RequestedIncompatibleQosStatus
& status) = 0;
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,
55
const
dds::core::status::LivelinessChangedStatus
& status) = 0;
56
57
virtual
void
on_data_available
(
DataReader<T>
& the_reader) = 0;
58
59
virtual
void
on_subscription_matched
(
60
DataReader<T>
& the_reader,
61
const
dds::core::status::SubscriptionMatchedStatus
& status) = 0;
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>
70
class
dds::sub::NoOpDataReaderListener
:
public
virtual
DataReaderListener
<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,
80
const
dds::core::status::RequestedDeadlineMissedStatus
& status);
81
82
virtual
void
on_requested_incompatible_qos
(
83
DataReader<T>
& the_reader,
84
const
dds::core::status::RequestedIncompatibleQosStatus
& status);
85
86
virtual
void
on_sample_rejected
(
87
DataReader<T>
& the_reader,
88
const
dds::core::status::SampleRejectedStatus
& status);
89
90
virtual
void
on_liveliness_changed
(
91
DataReader<T>
& the_reader,
92
const
dds::core::status::LivelinessChangedStatus
& status);
93
94
virtual
void
on_data_available
(
DataReader<T>
& the_reader);
95
96
virtual
void
on_subscription_matched
(
97
DataReader<T>
& the_reader,
98
const
dds::core::status::SubscriptionMatchedStatus
& status);
99
100
virtual
void
on_sample_lost
(
101
DataReader<T>
& the_reader,
102
const
dds::core::status::SampleLostStatus
& status);
103
};
104
105
#endif
/* OMG_DDS_SUB_DATA_READER_LISTENER_HPP_ */
Generated on Sat Nov 3 2012 00:02:19 for DDS-PSM-C++ by
1.8.2