Fast DDS  Version 3.6.1.0
Fast DDS
TopicListener.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_TOPIC__TOPICLISTENER_HPP
20 #define FASTDDS_DDS_TOPIC__TOPICLISTENER_HPP
21 
22 #include <fastdds/fastdds_dll.hpp>
23 #include <fastdds/dds/core/status/BaseStatus.hpp>
24 
25 namespace eprosima {
26 namespace fastdds {
27 namespace dds {
28 
29 class Topic;
30 
36 class FASTDDS_EXPORTED_API TopicListener
37 {
38 public:
39 
44  {
45  }
46 
50  virtual ~TopicListener()
51  {
52  }
53 
61  virtual void on_inconsistent_topic(
62  Topic* topic,
64  {
65  (void)topic;
66  (void)status;
67  }
68 
69 };
70 
71 } // namespace dds
72 } // namespace fastdds
73 } // namespace eprosima
74 
75 #endif // FASTDDS_DDS_TOPIC__TOPICLISTENER_HPP
Class Topic, represents the fact that both publications and subscriptions are tied to a single data-t...
Definition: Topic.hpp:53
Class TopicListener, it should be used by the end user to implement specific callbacks to certain act...
Definition: TopicListener.hpp:37
virtual void on_inconsistent_topic(Topic *topic, InconsistentTopicStatus status)
Virtual function to be implemented by the user containing the actions to be performed when another to...
Definition: TopicListener.hpp:61
virtual ~TopicListener()
Destructor.
Definition: TopicListener.hpp:50
TopicListener()
Constructor.
Definition: TopicListener.hpp:43
Definition: DomainParticipant.hpp:46
A struct storing the base status.
Definition: BaseStatus.hpp:30