Fast DDS  Version 3.1.2
Fast DDS
Loading...
Searching...
No Matches
SubscriberListener.hpp
1// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
19#ifndef FASTDDS_DDS_SUBSCRIBER__SUBSCRIBERLISTENER_HPP
20#define FASTDDS_DDS_SUBSCRIBER__SUBSCRIBERLISTENER_HPP
21
22#include <fastdds/dds/core/status/DeadlineMissedStatus.hpp>
23#include <fastdds/dds/core/status/LivelinessChangedStatus.hpp>
24#include <fastdds/dds/core/status/SubscriptionMatchedStatus.hpp>
25#include <fastdds/dds/subscriber/DataReaderListener.hpp>
26#include <fastdds/fastdds_dll.hpp>
27
28namespace eprosima {
29namespace fastdds {
30namespace dds {
31
32class Subscriber;
33
41{
42public:
43
47 FASTDDS_EXPORTED_API SubscriberListener()
48 {
49 }
50
54 FASTDDS_EXPORTED_API virtual ~SubscriberListener()
55 {
56 }
57
64 FASTDDS_EXPORTED_API virtual void on_data_on_readers(
65 Subscriber* sub)
66 {
67 (void)sub;
68 }
69
70};
71
72} // namespace dds
73} // namespace fastdds
74} // namespace eprosima
75
76#endif // FASTDDS_DDS_SUBSCRIBER__SUBSCRIBERLISTENER_HPP
Class DataReaderListener, it should be used by the end user to implement specific callbacks to certai...
Definition DataReaderListener.hpp:41
Class Subscriber, contains the public API that allows the user to control the reception of messages.
Definition Subscriber.hpp:66
Class SubscriberListener, it should be used by the end user to implement specific callbacks to certai...
Definition SubscriberListener.hpp:41
FASTDDS_EXPORTED_API SubscriberListener()
Constructor.
Definition SubscriberListener.hpp:47
virtual FASTDDS_EXPORTED_API ~SubscriberListener()
Destructor.
Definition SubscriberListener.hpp:54
virtual FASTDDS_EXPORTED_API void on_data_on_readers(Subscriber *sub)
Virtual function to be implemented by the user containing the actions to be performed when a new Data...
Definition SubscriberListener.hpp:64
Definition DomainParticipant.hpp:45
eProsima namespace.