Line data Source code
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 : 15 : OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL 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 : */ 26 : class DiscoveryListener { 27 : public: 28 : 29 0 : DiscoveryListener() {} 30 : 31 0 : 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 : 42 : OPENDDS_END_VERSIONED_NAMESPACE_DECL 43 : 44 : #endif /* OPENDDS_DCPS_DISCOVERYLISTENER_H */