Line data Source code
1 : /* 2 : * 3 : * 4 : * Distributed under the OpenDDS License. 5 : * See: http://www.opendds.org/license.html 6 : */ 7 : 8 : #ifndef OPENDDS_DCPS_TOPICCALLBACKS_H 9 : #define OPENDDS_DCPS_TOPICCALLBACKS_H 10 : 11 : #include "RcObject.h" 12 : #if !defined (ACE_LACKS_PRAGMA_ONCE) 13 : #pragma once 14 : #endif /* ACE_LACKS_PRAGMA_ONCE */ 15 : 16 : OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL 17 : 18 : namespace OpenDDS { 19 : namespace DCPS { 20 : 21 : /** 22 : * @class TopicCallbacks 23 : * 24 : * @brief Defines the interface for Discovery callbacks into the Topic. 25 : * 26 : */ 27 : class TopicCallbacks 28 : : public virtual RcObject { 29 : public: 30 : 31 0 : TopicCallbacks() {} 32 : 33 0 : virtual ~TopicCallbacks() {} 34 : 35 : // Report the current number of inconsistent topics. 36 : virtual void inconsistent_topic(int count) = 0; 37 : }; 38 : 39 : } // namespace DCPS 40 : } // namespace OpenDDS 41 : 42 : OPENDDS_END_VERSIONED_NAMESPACE_DECL 43 : 44 : #endif /* OPENDDS_DCPS_TOPICCALLBACKS_H */