Fast RTPS  Version 2.14.1
Fast RTPS
Loading...
Searching...
No Matches
PublisherListener.h
1// Copyright 2016 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 PUBLISHERLISTENER_H_
20#define PUBLISHERLISTENER_H_
21
22#include <fastrtps/rtps/common/MatchingInfo.h>
23#include <fastrtps/qos/DeadlineMissedStatus.h>
24#include <fastrtps/qos/LivelinessLostStatus.h>
25
26namespace eprosima {
27namespace fastrtps {
28
29class Publisher;
30
36class RTPS_DllAPI PublisherListener
37{
38public:
39
41 {
42 }
43
45 {
46 }
47
54 Publisher* pub,
55 rtps::MatchingInfo& info)
56 {
57 (void)pub;
58 (void)info;
59 }
60
67 Publisher* pub,
68 const OfferedDeadlineMissedStatus& status)
69 {
70 (void)pub;
71 (void)status;
72 }
73
79 virtual void on_liveliness_lost(
80 Publisher* pub,
81 const LivelinessLostStatus& status)
82 {
83 (void)pub;
84 (void)status;
85 }
86
87};
88
89} /* namespace rtps */
90} /* namespace eprosima */
91
92#endif /* PUBLISHERLISTENER_H_ */
Class Publisher, used to send data to associated subscribers.
Definition Publisher.h:47
Class PublisherListener, allows the end user to implement callbacks triggered by certain events.
Definition PublisherListener.h:37
virtual void on_liveliness_lost(Publisher *pub, const LivelinessLostStatus &status)
Method called when the liveliness of a publisher is lost.
Definition PublisherListener.h:79
virtual ~PublisherListener()
Definition PublisherListener.h:44
virtual void onPublicationMatched(Publisher *pub, rtps::MatchingInfo &info)
This method is called when the Publisher is matched (or unmatched) against an endpoint.
Definition PublisherListener.h:53
PublisherListener()
Definition PublisherListener.h:40
virtual void on_offered_deadline_missed(Publisher *pub, const OfferedDeadlineMissedStatus &status)
A method called when a deadline is missed.
Definition PublisherListener.h:66
DeadlineMissedStatus OfferedDeadlineMissedStatus
Definition DeadlineMissedStatus.h:29
eProsima namespace.
Definition LibrarySettingsAttributes.h:23