| Fast DDS Version 3.3.0 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
18
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
28 namespace eprosima {
29 namespace fastdds {
30 namespace dds {
31
32 class Subscriber;
33
40 class SubscriberListener : public DataReaderListener
41{
42 public:
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
eprosima::fastdds::dds::DataReaderListener::DataReaderListener
FASTDDS_EXPORTED_API DataReaderListener()
Constructor.
Definition DataReaderListener.hpp:47
eprosima::fastdds::dds::Subscriber
Class Subscriber, contains the public API that allows the user to control the reception of messages.
Definition Subscriber.hpp:66
eprosima::fastdds::dds::SubscriberListener::SubscriberListener
FASTDDS_EXPORTED_API SubscriberListener()
Constructor.
Definition SubscriberListener.hpp:47
eprosima::fastdds::dds::SubscriberListener::~SubscriberListener
virtual FASTDDS_EXPORTED_API ~SubscriberListener()
Destructor.
Definition SubscriberListener.hpp:54
eprosima::fastdds::dds::SubscriberListener::on_data_on_readers
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
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds
eprosima
eProsima namespace.