blob: be265f12591d3d0371a697c9a10a54b76759f8cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/**
* @author William R. Otte <wotte@dre.vanderbilt.edu>
* @author Johnny Willemsen (jwillemsen@remedy.nl)
*
* Wrapper facade for NDDS.
*/
#ifndef PUBLISHERLISTENER_T_H_
#define PUBLISHERLISTENER_T_H_
#include "dds4ccm/idl/dds4ccm_ConnectorStatusListenerC.h"
#include "dds4ccm/impl/dds4ccm_conf.h"
#include "dds4ccm/impl/dds4ccm_dds_impl_export.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Reactor;
ACE_END_VERSIONED_NAMESPACE_DECL
namespace CIAO
{
namespace DDS4CCM
{
class DDS4CCM_DDS_IMPL_Export PublisherListener :
public ::DDS::PublisherListener
{
public:
/// Constructor
PublisherListener (
::CCM_DDS::ConnectorStatusListener_ptr error_listener,
ACE_Reactor* reactor);
/// Destructor
virtual ~PublisherListener (void);
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 (CIAO_DDS4CCM_NDDS==1)
virtual void on_reliable_writer_cache_changed (
::DDS::DataWriter_ptr the_writer,
const ::DDS::ReliableWriterCacheChangedStatus & status);
virtual void on_reliable_reader_activity_changed (
::DDS::DataWriter_ptr the_Writer,
const ::DDS::ReliableReaderActivityChangedStatus & status);
#endif
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_;
};
}
}
#endif /* PUBLISHERLISTENER_T_H_ */
|