OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
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:
60  virtual void on_offered_deadline_missed(dds::pub::AnyDataWriter& writer,
61  const ::dds::core::status::OfferedDeadlineMissedStatus& status) = 0;
62 
64  virtual void on_offered_incompatible_qos(dds::pub::AnyDataWriter& writer,
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 
72  virtual void on_publication_matched(dds::pub::AnyDataWriter& writer,
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(dds::pub::AnyDataWriter& writer,
102  const ::dds::core::status::OfferedDeadlineMissedStatus& status) { }
103 
104  virtual void on_offered_incompatible_qos(dds::pub::AnyDataWriter& writer,
105  const ::dds::core::status::OfferedIncompatibleQosStatus& status) { }
106 
107  virtual void on_liveliness_lost(dds::pub::AnyDataWriter& writer,
108  const ::dds::core::status::LivelinessLostStatus& status) { }
109 
110  virtual void on_publication_matched(dds::pub::AnyDataWriter& writer,
111  const ::dds::core::status::PublicationMatchedStatus& status) { }
113 };
114 
115 
116 #endif /* OMG_DDS_PUB_ANY_DATA_WRITER_LISTENER_HPP_ */
AnyDataWriter events Listener.
Definition: array.hpp:23
Typeless base class for the typed DataWriter.
#define OMG_DDS_API
Definition: macros.hpp:52
AnyDataWriter events Listener.