diff options
Diffstat (limited to 'CIAO/connectors/dds4ccm/impl/ndds/PublisherListener_T.h')
-rw-r--r-- | CIAO/connectors/dds4ccm/impl/ndds/PublisherListener_T.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/CIAO/connectors/dds4ccm/impl/ndds/PublisherListener_T.h b/CIAO/connectors/dds4ccm/impl/ndds/PublisherListener_T.h new file mode 100644 index 00000000000..0543b5a4de0 --- /dev/null +++ b/CIAO/connectors/dds4ccm/impl/ndds/PublisherListener_T.h @@ -0,0 +1,78 @@ +/** + * @author William R. Otte <wotte@dre.vanderbilt.edu> + * @author Johnny Willemsen <jwillemsen@remedy.nl> + * + * $Id$ + * + * Wrapper facade for NDDS. + */ + +#ifndef DDS_PUBLISHERLISTENER_T_H_ +#define DDS_PUBLISHERLISTENER_T_H_ + +#include "dds4ccm/idl/dds_rtf2_dcpsC.h" +#include "ace/Copy_Disabled.h" + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL +class ACE_Reactor; +ACE_END_VERSIONED_NAMESPACE_DECL + +namespace CIAO +{ + namespace DDS4CCM + { + template <typename DDS_TYPE, typename CCM_TYPE> + class PublisherListener_T : + public ::DDS::PublisherListener, + private ACE_Copy_Disabled + { + public: + /// Constructor + PublisherListener_T ( + ::CCM_DDS::ConnectorStatusListener_ptr error_listener, + ACE_Reactor* reactor); + + virtual void on_offered_deadline_missed ( + ::DDS::DataWriter_ptr the_Writer, + const ::DDS::OfferedDeadlineMissedStatus & status); + + virtual void on_liveliness_lost ( + ::DDS::DataWriter_ptr the_Writer, + const ::DDS::LivelinessLostStatus & status); + + virtual void on_offered_incompatible_qos ( + ::DDS::DataWriter_ptr the_Writer, + const ::DDS::OfferedIncompatibleQosStatus & status); + + virtual void on_publication_matched ( + ::DDS::DataWriter_ptr the_Writer, + const ::DDS::PublicationMatchedStatus & status); + +#if defined (CIAO_DDS4CCM_NDDS) && (CIAO_DDS4CCM_NDDS==1) + virtual void on_reliable_reader_activity_changed ( + ::DDS::DataWriter_ptr the_Writer, + const ::DDS::ReliableReaderActivityChangedStatus & status); +#endif + + /// Destructor + virtual ~PublisherListener_T (void); + + static ::DDS::StatusMask get_mask ( + ::CCM_DDS::ConnectorStatusListener_ptr error_listener); + + private: + virtual void on_unexpected_status ( + ::DDS::Entity_ptr entity, + ::DDS::StatusKind status_kind); + + ::CCM_DDS::ConnectorStatusListener_var error_listener_; + + ACE_Reactor* reactor_; + }; + } +} + +#include "dds4ccm/impl/ndds/PublisherListener_T.cpp" + +#endif /* DDS_PUBLISHERLISTENER_T_H_ */ + |