| Fast DDS Version 3.3.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
18
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
28 namespace eprosima {
29 namespace fastdds {
30 namespace dds {
31
32 class DataWriter;
33
38 class FASTDDS_EXPORTED_API DataWriterListener
39{
40 public:
41
45 DataWriterListener()
46 {
47 }
48
52 virtual ~DataWriterListener()
53 {
54 }
55
62 virtual void on_publication_matched(
63 DataWriter* writer,
64 const PublicationMatchedStatus& info)
65 {
66 static_cast<void>(writer);
67 static_cast<void>(info);
68 }
69
76 virtual void on_offered_deadline_missed(
77 DataWriter* writer,
78 const OfferedDeadlineMissedStatus& status)
79 {
80 static_cast<void>(writer);
81 static_cast<void>(status);
82 }
83
90 virtual void on_offered_incompatible_qos(
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
118 virtual void on_unacknowledged_sample_removed(
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
eprosima::fastdds::dds::DataWriter
Class DataWriter, contains the actual implementation of the behaviour of the DataWriter.
Definition DataWriter.hpp:67
eprosima::fastdds::dds::DataWriterListener::on_offered_incompatible_qos
virtual void on_offered_incompatible_qos(DataWriter *writer, const OfferedIncompatibleQosStatus &status)
A method called when an incompatible QoS is offered.
Definition DataWriterListener.hpp:90
eprosima::fastdds::dds::DataWriterListener::on_liveliness_lost
virtual void on_liveliness_lost(DataWriter *writer, const LivelinessLostStatus &status)
Method called when the liveliness of a DataWriter is lost.
Definition DataWriterListener.hpp:104
eprosima::fastdds::dds::DataWriterListener::~DataWriterListener
virtual ~DataWriterListener()
Destructor.
Definition DataWriterListener.hpp:52
eprosima::fastdds::dds::DataWriterListener::on_publication_matched
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
eprosima::fastdds::dds::DataWriterListener::DataWriterListener
DataWriterListener()
Constructor.
Definition DataWriterListener.hpp:45
eprosima::fastdds::dds::DataWriterListener::on_unacknowledged_sample_removed
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
eprosima::fastdds::dds::DataWriterListener::on_offered_deadline_missed
virtual void on_offered_deadline_missed(DataWriter *writer, const OfferedDeadlineMissedStatus &status)
A method called when a deadline is missed.
Definition DataWriterListener.hpp:76
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::LivelinessLostStatus
BaseStatus LivelinessLostStatus
Alias of BaseStatus.
Definition BaseStatus.hpp:41
eprosima::fastdds::dds::OfferedIncompatibleQosStatus
IncompatibleQosStatus OfferedIncompatibleQosStatus
Alias of IncompatibleQosStatus.
Definition IncompatibleQosStatus.hpp:90
eprosima::fastdds::dds::OfferedDeadlineMissedStatus
DeadlineMissedStatus OfferedDeadlineMissedStatus
Typedef of DeadlineMissedStatus.
Definition DeadlineMissedStatus.hpp:57
eprosima::fastdds::dds::InstanceHandle_t
eprosima::fastdds::rtps::InstanceHandle_t InstanceHandle_t
Definition InstanceHandle.hpp:31
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::dds::PublicationMatchedStatus
A structure storing the publication status.
Definition PublicationMatchedStatus.hpp:32