Cyclone ISO C++ API Reference Guide
AnyDataWriterListener.hpp
Go to the documentation of this file.
1 #ifndef OMG_DDS_PUB_ANY_DATA_WRITER_LISTENER_HPP_
2 #define OMG_DDS_PUB_ANY_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 
23 
24 namespace dds
25 {
26 namespace pub
27 {
28 class AnyDataWriterListener;
29 class NoOpAnyDataWriterListener;
30 }
31 }
32 
33 
52 {
53 public:
55  virtual ~AnyDataWriterListener() { }
58 public:
61  const ::dds::core::status::OfferedDeadlineMissedStatus& status) = 0;
62 
65  const ::dds::core::status::OfferedIncompatibleQosStatus& status) = 0;
66 
68  virtual void on_liveliness_lost(dds::pub::AnyDataWriter& writer,
69  const ::dds::core::status::LivelinessLostStatus& status) = 0;
70 
73  const ::dds::core::status::PublicationMatchedStatus& status) = 0;
74 
75 };
76 
77 
92 {
97 public:
98  virtual ~NoOpAnyDataWriterListener() { }
99 
100 public:
101  virtual void on_offered_deadline_missed(
103  const ::dds::core::status::OfferedDeadlineMissedStatus&) { }
104 
105  virtual void on_offered_incompatible_qos(
107  const ::dds::core::status::OfferedIncompatibleQosStatus&) { }
108 
109  virtual void on_liveliness_lost(
111  const ::dds::core::status::LivelinessLostStatus&) { }
112 
113  virtual void on_publication_matched(
115  const ::dds::core::status::PublicationMatchedStatus&) { }
117 };
118 
119 
120 #endif /* OMG_DDS_PUB_ANY_DATA_WRITER_LISTENER_HPP_ */
AnyDataWriter.hpp
dds::pub::AnyDataWriter
Typeless base class for the typed DataWriter.
Definition: AnyDataWriter.hpp:48
OMG_DDS_API
#define OMG_DDS_API
Definition: macros.hpp:52
dds::pub::AnyDataWriterListener::on_liveliness_lost
virtual void on_liveliness_lost(dds::pub::AnyDataWriter &writer, const ::dds::core::status::LivelinessLostStatus &status)=0
dds::pub::NoOpAnyDataWriterListener
AnyDataWriter events Listener.
Definition: AnyDataWriterListener.hpp:91
dds
Definition: array.hpp:30
dds::pub::AnyDataWriterListener::on_offered_deadline_missed
virtual void on_offered_deadline_missed(dds::pub::AnyDataWriter &writer, const ::dds::core::status::OfferedDeadlineMissedStatus &status)=0
dds::pub::AnyDataWriterListener::on_offered_incompatible_qos
virtual void on_offered_incompatible_qos(dds::pub::AnyDataWriter &writer, const ::dds::core::status::OfferedIncompatibleQosStatus &status)=0
dds::pub::AnyDataWriterListener::on_publication_matched
virtual void on_publication_matched(dds::pub::AnyDataWriter &writer, const ::dds::core::status::PublicationMatchedStatus &status)=0
dds::pub::AnyDataWriterListener
AnyDataWriter events Listener.
Definition: AnyDataWriterListener.hpp:51