Fast DDS  Version 3.0.0
Fast DDS
Loading...
Searching...
No Matches
DataWriterListener.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_PUBLISHER__DATAWRITERLISTENER_HPP
20#define FASTDDS_DDS_PUBLISHER__DATAWRITERLISTENER_HPP
21
22#include <fastdds/rtps/common/Types.hpp>
23#include <fastdds/dds/core/status/BaseStatus.hpp>
24#include <fastdds/dds/core/status/PublicationMatchedStatus.hpp>
25#include <fastdds/dds/core/status/IncompatibleQosStatus.hpp>
26#include <fastdds/dds/core/status/DeadlineMissedStatus.hpp>
27
28namespace eprosima {
29namespace fastdds {
30namespace dds {
31
32class DataWriter;
33
38class FASTDDS_EXPORTED_API DataWriterListener
39{
40public:
41
46 {
47 }
48
53 {
54 }
55
63 DataWriter* writer,
64 const PublicationMatchedStatus& info)
65 {
66 static_cast<void>(writer);
67 static_cast<void>(info);
68 }
69
77 DataWriter* writer,
78 const OfferedDeadlineMissedStatus& status)
79 {
80 static_cast<void>(writer);
81 static_cast<void>(status);
82 }
83
91 DataWriter* writer,
92 const OfferedIncompatibleQosStatus& status)
93 {
94 static_cast<void>(writer);
95 static_cast<void>(status);
96 }
97
104 virtual void on_liveliness_lost(
105 DataWriter* writer,
106 const LivelinessLostStatus& status)
107 {
108 static_cast<void>(writer);
109 static_cast<void>(status);
110 }
111
119 DataWriter* writer,
120 const InstanceHandle_t& instance)
121 {
122 static_cast<void>(writer);
123 static_cast<void>(instance);
124 }
125
126};
127
128} // namespace dds
129} // namespace fastdds
130} // namespace eprosima
131
132#endif // FASTDDS_DDS_PUBLISHER__DATAWRITERLISTENER_HPP
Class DataWriter, contains the actual implementation of the behaviour of the DataWriter.
Definition DataWriter.hpp:64
Class DataWriterListener, allows the end user to implement callbacks triggered by certain events.
Definition DataWriterListener.hpp:39
virtual void on_offered_incompatible_qos(DataWriter *writer, const OfferedIncompatibleQosStatus &status)
A method called when an incompatible QoS is offered.
Definition DataWriterListener.hpp:90
virtual void on_liveliness_lost(DataWriter *writer, const LivelinessLostStatus &status)
Method called when the liveliness of a DataWriter is lost.
Definition DataWriterListener.hpp:104
virtual ~DataWriterListener()
Destructor.
Definition DataWriterListener.hpp:52
virtual void on_publication_matched(DataWriter *writer, const PublicationMatchedStatus &info)
This method is called when the DataWriter is matched (or unmatched) against an endpoint.
Definition DataWriterListener.hpp:62
DataWriterListener()
Constructor.
Definition DataWriterListener.hpp:45
virtual void on_unacknowledged_sample_removed(DataWriter *writer, const InstanceHandle_t &instance)
Method called when a sample has been removed unacknowledged.
Definition DataWriterListener.hpp:118
virtual void on_offered_deadline_missed(DataWriter *writer, const OfferedDeadlineMissedStatus &status)
A method called when a deadline is missed.
Definition DataWriterListener.hpp:76
Definition DomainParticipant.hpp:45
eProsima namespace.
A struct storing the base status.
Definition BaseStatus.hpp:30
A struct storing the deadline status.
Definition DeadlineMissedStatus.hpp:31
A struct storing the requested incompatible QoS status.
Definition IncompatibleQosStatus.hpp:61
A structure storing the publication status.
Definition PublicationMatchedStatus.hpp:32
Struct InstanceHandle_t, used to contain the key for WITH_KEY topics.
Definition InstanceHandle.hpp:154