DataWriterCallbacks.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #ifndef OPENDDS_DCPS_DATAWRITERCALLBACKS_H
00009 #define OPENDDS_DCPS_DATAWRITERCALLBACKS_H
00010 
00011 #include "dds/DCPS/Definitions.h"
00012 #include "dds/DCPS/DiscoveryListener.h"
00013 #include "dds/DCPS/RcObject.h"
00014 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00015 #pragma once
00016 #endif /* ACE_LACKS_PRAGMA_ONCE */
00017 
00018 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00019 
00020 namespace OpenDDS {
00021 namespace DCPS {
00022 
00023 /**
00024 * @class DataWriterCallbacks
00025 *
00026 * @brief Defines the interface for Discovery callbacks into the DataWriter.
00027 *
00028 */
00029 class DataWriterCallbacks
00030   : public virtual RcObject {
00031 public:
00032 
00033   DataWriterCallbacks() {}
00034 
00035   virtual ~DataWriterCallbacks() {}
00036 
00037   virtual void add_association(const RepoId& yourId,
00038                                const ReaderAssociation& reader,
00039                                bool active) = 0;
00040 
00041   virtual void association_complete(const RepoId& remote_id) = 0;
00042 
00043   virtual void remove_associations(const ReaderIdSeq& readers,
00044                                    CORBA::Boolean callback) = 0;
00045 
00046   virtual void update_incompatible_qos(const IncompatibleQosStatus& status) = 0;
00047 
00048   virtual void update_subscription_params(const RepoId& readerId,
00049                                           const DDS::StringSeq& exprParams) = 0;
00050 
00051   virtual void inconsistent_topic() = 0;
00052 
00053   virtual void register_for_reader(const RepoId& /*participant*/,
00054                                    const RepoId& /*writerid*/,
00055                                    const RepoId& /*readerid*/,
00056                                    const TransportLocatorSeq& /*locators*/,
00057                                    DiscoveryListener* /*listener*/) { }
00058 
00059   virtual void unregister_for_reader(const RepoId& /*participant*/,
00060                                      const RepoId& /*writerid*/,
00061                                      const RepoId& /*readerid*/) { }
00062 
00063 };
00064 
00065 } // namespace DCPS
00066 } // namespace OpenDDS
00067 
00068 OPENDDS_END_VERSIONED_NAMESPACE_DECL
00069 
00070 #endif /* OPENDDS_DCPS_DATAWRITERCALLBACKS_H  */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1