blob: 0543b5a4de079cf5c9db3b64686e18957521b552 (
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
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_ */
|