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
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
27
class
AnyDataReaderListener
{
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,
37
const
dds::core::status::RequestedDeadlineMissedStatus
& status) = 0;
38
39
virtual
void
on_requested_incompatible_qos
(
40
AnyDataReader
& the_reader,
41
const
dds::core::status::RequestedIncompatibleQosStatus
& status) = 0;
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,
49
const
dds::core::status::LivelinessChangedStatus
& status) = 0;
50
51
virtual
void
on_data_available
(
AnyDataReader
& the_reader) = 0;
52
53
virtual
void
on_subscription_matched
(
54
AnyDataReader
& the_reader,
55
const
dds::core::status::SubscriptionMatchedStatus
& status) = 0;
56
57
virtual
void
on_sample_lost
(
58
AnyDataReader
& the_reader,
59
const
dds::core::status::SampleLostStatus
& status) = 0;
60
};
61
62
63
class
NoOpAnyDataReaderListener
:
public
virtual
AnyDataReaderListener
{
64
public
:
65
virtual
~NoOpAnyDataReaderListener
() { }
66
67
public
:
68
virtual
void
on_requested_deadline_missed
(
69
AnyDataReader
& the_reader,
70
const
dds::core::status::RequestedDeadlineMissedStatus
& status) { }
71
72
virtual
void
on_requested_incompatible_qos
(
73
AnyDataReader
& the_reader,
74
const
dds::core::status::RequestedIncompatibleQosStatus
& status) { }
75
76
virtual
void
on_sample_rejected
(
77
AnyDataReader
& the_reader,
78
const
dds::core::status::SampleRejectedStatus
& status) { }
79
80
virtual
void
on_liveliness_changed
(
81
AnyDataReader
& the_reader,
82
const
dds::core::status::LivelinessChangedStatus
& status) { }
83
84
virtual
void
on_data_available
(
AnyDataReader
& the_reader) { }
85
86
virtual
void
on_subscription_matched
(
87
AnyDataReader
& the_reader,
88
const
dds::core::status::SubscriptionMatchedStatus
& status) { }
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_ */
Generated on Sat Nov 3 2012 00:02:19 for DDS-PSM-C++ by
1.8.2