Cyclone ISO C++ API Reference Guide
DataWriterListener.hpp
Go to the documentation of this file.
1
#ifndef OMG_DDS_PUB_DATA_WRITER_LISTENER_HPP_
2
#define OMG_DDS_PUB_DATA_WRITER_LISTENER_HPP_
3
4
/* Copyright 2010, Object Management Group, Inc.
5
* Copyright 2010, PrismTech, Corp.
6
* Copyright 2010, Real-Time Innovations, Inc.
7
* All rights reserved.
8
*
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing, software
16
* distributed under the License is distributed on an "AS IS" BASIS,
17
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
* See the License for the specific language governing permissions and
19
* limitations under the License.
20
*/
21
22
23
#include <
dds/pub/DataWriter.hpp
>
24
25
namespace
dds
26
{
27
namespace
pub
28
{
29
101
template
<
typename
T>
102
class
DataWriterListener
103
{
104
public
:
106
virtual
~
DataWriterListener
() { }
109
public
:
128
virtual
void
on_offered_deadline_missed
(
129
dds::pub::DataWriter<T>
& writer,
130
const
dds::core::status::OfferedDeadlineMissedStatus
& status) = 0;
131
149
virtual
void
on_offered_incompatible_qos
(
150
dds::pub::DataWriter<T>
& writer,
151
const
dds::core::status::OfferedIncompatibleQosStatus
& status) = 0;
152
172
virtual
void
on_liveliness_lost
(
173
dds::pub::DataWriter<T>
& writer,
174
const
dds::core::status::LivelinessLostStatus
& status) = 0;
175
200
virtual
void
on_publication_matched
(
201
dds::pub::DataWriter<T>
& writer,
202
const
dds::core::status::PublicationMatchedStatus
& status) = 0;
203
};
204
205
222
template
<
typename
T>
223
class
NoOpDataWriterListener
:
public
virtual
DataWriterListener
<T>
224
{
229
public
:
230
virtual
~
NoOpDataWriterListener
() { }
231
232
public
:
233
virtual
void
234
on_offered_deadline_missed
(
235
dds::pub::DataWriter<T>
&,
236
const
dds::core::status::OfferedDeadlineMissedStatus
&) { }
237
238
virtual
void
239
on_offered_incompatible_qos
(
240
dds::pub::DataWriter<T>
&,
241
const
dds::core::status::OfferedIncompatibleQosStatus
&) { }
242
243
virtual
void
244
on_liveliness_lost
(
245
dds::pub::DataWriter<T>
&,
246
const
dds::core::status::LivelinessLostStatus
&) { }
247
248
virtual
void
249
on_publication_matched
(
250
dds::pub::DataWriter<T>
&,
251
const
dds::core::status::PublicationMatchedStatus
&) { }
253
};
254
255
}
256
}
257
258
#endif
/* OMG_DDS_PUB_DATA_WRITER_LISTENER_HPP_ */
dds::core::status::OfferedDeadlineMissedStatus
Definition:
Status.hpp:195
dds::pub::DataWriterListener::on_liveliness_lost
virtual void on_liveliness_lost(dds::pub::DataWriter< T > &writer, const dds::core::status::LivelinessLostStatus &status)=0
dds::pub::DataWriterListener
DataWriter events Listener.
Definition:
DataWriterListener.hpp:102
dds::core::status::LivelinessLostStatus
Definition:
Status.hpp:119
dds::pub::DataWriterListener::on_publication_matched
virtual void on_publication_matched(dds::pub::DataWriter< T > &writer, const dds::core::status::PublicationMatchedStatus &status)=0
dds::pub::DataWriter
DataWriter allows the application to set the value of the sample to be published under a given Topic.
Definition:
DataWriter.hpp:89
dds::pub::DataWriterListener::on_offered_deadline_missed
virtual void on_offered_deadline_missed(dds::pub::DataWriter< T > &writer, const dds::core::status::OfferedDeadlineMissedStatus &status)=0
DataWriter.hpp
dds
Definition:
array.hpp:30
dds::core::status::OfferedIncompatibleQosStatus
Definition:
Status.hpp:258
dds::pub::NoOpDataWriterListener
DataWriter events Listener.
Definition:
DataWriterListener.hpp:223
dds::pub::DataWriterListener::on_offered_incompatible_qos
virtual void on_offered_incompatible_qos(dds::pub::DataWriter< T > &writer, const dds::core::status::OfferedIncompatibleQosStatus &status)=0
dds::core::status::PublicationMatchedStatus
Definition:
Status.hpp:356
dds
pub
DataWriterListener.hpp
Generated by
1.8.16