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 
00014 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00015 #pragma once
00016 #endif /* ACE_LACKS_PRAGMA_ONCE */
00017 
00018 namespace OpenDDS {
00019 namespace DCPS {
00020 
00021 /**
00022 * @class DataWriterCallbacks
00023 *
00024 * @brief Defines the interface for Discovery callbacks into the DataWriter.
00025 *
00026 */
00027 class DataWriterCallbacks {
00028 public:
00029 
00030   DataWriterCallbacks() {}
00031 
00032   virtual ~DataWriterCallbacks() {}
00033 
00034   virtual void add_association(const RepoId& yourId,
00035                                const ReaderAssociation& reader,
00036                                bool active) = 0;
00037 
00038   virtual void association_complete(const RepoId& remote_id) = 0;
00039 
00040   virtual void remove_associations(const ReaderIdSeq& readers,
00041                                    CORBA::Boolean callback) = 0;
00042 
00043   virtual void update_incompatible_qos(const IncompatibleQosStatus& status) = 0;
00044 
00045   virtual void update_subscription_params(const RepoId& readerId,
00046                                           const DDS::StringSeq& exprParams) = 0;
00047 
00048   virtual void inconsistent_topic() = 0;
00049 
00050   virtual void register_for_reader(const RepoId& /*participant*/,
00051                                    const RepoId& /*writerid*/,
00052                                    const RepoId& /*readerid*/,
00053                                    const TransportLocatorSeq& /*locators*/,
00054                                    DiscoveryListener* /*listener*/) { }
00055 
00056   virtual void unregister_for_reader(const RepoId& /*participant*/,
00057                                      const RepoId& /*writerid*/,
00058                                      const RepoId& /*readerid*/) { }
00059 };
00060 
00061 } // namespace DCPS
00062 } // namespace OpenDDS
00063 
00064 #endif /* OPENDDS_DCPS_DATAWRITERCALLBACKS_H  */

Generated on Fri Feb 12 20:05:20 2016 for OpenDDS by  doxygen 1.4.7