Cyclone ISO C++ API Reference Guide
SubscriberListener.hpp
Go to the documentation of this file.
1
#ifndef OMG_DDS_SUB_SUBSCRIBER_LISTENER_HPP_
2
#define OMG_DDS_SUB_SUBSCRIBER_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/sub/AnyDataReaderListener.hpp
>
23
#include <
dds/sub/Subscriber.hpp
>
24
25
namespace
dds
26
{
27
namespace
sub
28
{
29
124
class
OMG_DDS_API
SubscriberListener
:
public
virtual
AnyDataReaderListener
125
{
126
public
:
128
typedef ::dds::core::smart_ptr_traits<SubscriberListener>::ref_type ref_type;
131
public
:
133
virtual
~
SubscriberListener
() { }
136
public
:
164
virtual
void
on_data_on_readers(
Subscriber
& sub) = 0;
165
};
166
167
184
class
OMG_DDS_API
NoOpSubscriberListener
:
185
public
virtual
SubscriberListener
,
186
public
virtual
NoOpAnyDataReaderListener
187
{
192
public
:
193
virtual
~
NoOpSubscriberListener
() { }
194
195
public
:
196
virtual
void
on_data_on_readers(
Subscriber
&) { }
198
};
199
200
}
201
}
202
203
#endif
/* OMG_DDS_SUB_SUBSCRIBER_LISTENER_HPP_ */
dds::sub::Subscriber
A Subscriber is the object responsible for the actual reception of the data resulting from its subscr...
Definition:
Subscriber.hpp:53
OMG_DDS_API
#define OMG_DDS_API
Definition:
macros.hpp:52
dds
Definition:
array.hpp:30
AnyDataReaderListener.hpp
dds::sub::SubscriberListener
Subscriber events Listener.
Definition:
SubscriberListener.hpp:124
Subscriber.hpp
dds::sub::NoOpAnyDataReaderListener
AnyDataReader events Listener.
Definition:
AnyDataReaderListener.hpp:110
dds::sub::NoOpSubscriberListener
Subscriber events Listener.
Definition:
SubscriberListener.hpp:184
dds::sub::AnyDataReaderListener
AnyDataReader events Listener.
Definition:
AnyDataReaderListener.hpp:49
dds
sub
SubscriberListener.hpp
Generated by
1.8.16