OpenDDS  Snapshot(2023/04/28-20:55)
DiscoveryListener.h
Go to the documentation of this file.
1 /*
2  * Distributed under the OpenDDS License.
3  * See: http://www.opendds.org/license.html
4  */
5 
6 #ifndef OPENDDS_DCPS_DISCOVERYLISTENER_H
7 #define OPENDDS_DCPS_DISCOVERYLISTENER_H
8 
9 #include "dds/DdsDcpsInfoUtilsC.h"
10 
11 #if !defined (ACE_LACKS_PRAGMA_ONCE)
12 #pragma once
13 #endif /* ACE_LACKS_PRAGMA_ONCE */
14 
16 
17 namespace OpenDDS {
18 namespace DCPS {
19 
20 /**
21 * @class DiscoveryListener
22 *
23 * @brief Defines the interface that allows DataWriters (and lower levels) to inform discovery.
24 *
25 */
27 public:
28 
30 
31  virtual ~DiscoveryListener() {}
32 
33  virtual void reader_exists(const GUID_t& readerid, const GUID_t& writerid) = 0;
34  virtual void reader_does_not_exist(const GUID_t& readerid, const GUID_t& writerid) = 0;
35  virtual void writer_exists(const GUID_t& writerid, const GUID_t& readerid) = 0;
36  virtual void writer_does_not_exist(const GUID_t& writerid, const GUID_t& readerid) = 0;
37 };
38 
39 } // namespace DCPS
40 } // namespace OpenDDS
41 
43 
44 #endif /* OPENDDS_DCPS_DISCOVERYLISTENER_H */
virtual void reader_exists(const GUID_t &readerid, const GUID_t &writerid)=0
virtual void writer_exists(const GUID_t &writerid, const GUID_t &readerid)=0
virtual void reader_does_not_exist(const GUID_t &readerid, const GUID_t &writerid)=0
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28
Defines the interface that allows DataWriters (and lower levels) to inform discovery.
virtual void writer_does_not_exist(const GUID_t &writerid, const GUID_t &readerid)=0