DDS
ver. 3.6
dds-protocol-lib
src
ChannelEventHandlersImpl.h
Go to the documentation of this file.
1
// Copyright 2015 GSI, Inc. All rights reserved.
2
//
3
//
4
//
5
#ifndef DDS_ChannelEventHandlersImpl_h
6
#define DDS_ChannelEventHandlersImpl_h
7
8
#include "
BaseEventHandlersImpl.h
"
9
#include "
ChannelInfo.h
"
10
11
namespace
dds
12
{
13
namespace
protocol_api
14
{
16
enum class
EChannelEvents
17
{
18
OnConnected
,
19
OnFailedToConnect
,
20
OnRemoteEndDissconnected
,
21
OnHandshakeOK
,
22
OnHandshakeFailed
,
23
OnReplyAddSlot
24
};
25
26
class
CChannelEventHandlersImpl
:
private
CBaseEventHandlersImpl
<EChannelEvents>
27
{
28
DDS_BEGIN_EVENT_HANDLERS(
EChannelEvents
)
29
DDS_REGISTER_EVENT_HANDLER
(
EChannelEvents
,
EChannelEvents::OnConnected
,
void
(
const
SSenderInfo
&))
30
DDS_REGISTER_EVENT_HANDLER
(
EChannelEvents
,
EChannelEvents::OnFailedToConnect
,
void
(
const
SSenderInfo
&))
31
DDS_REGISTER_EVENT_HANDLER
(
EChannelEvents
,
32
EChannelEvents::OnRemoteEndDissconnected
,
33
void
(
const
SSenderInfo
&))
34
DDS_REGISTER_EVENT_HANDLER
(
EChannelEvents
,
EChannelEvents::OnHandshakeOK
,
void
(
const
SSenderInfo
&))
35
DDS_REGISTER_EVENT_HANDLER
(
EChannelEvents
,
EChannelEvents::OnHandshakeFailed
,
void
(
const
SSenderInfo
&))
36
DDS_REGISTER_EVENT_HANDLER
(
EChannelEvents
,
EChannelEvents::OnReplyAddSlot
,
void
(
const
SSenderInfo
&))
37
DDS_END_EVENT_HANDLERS
38
};
39
}
// namespace protocol_api
40
}
// namespace dds
41
42
#endif
dds::protocol_api::CBaseEventHandlersImpl
Definition:
BaseEventHandlersImpl.h:69
dds::protocol_api::SSenderInfo
Definition:
BaseEventHandlersImpl.h:48
dds::protocol_api::EChannelEvents::OnFailedToConnect
dds::protocol_api::CChannelEventHandlersImpl
Definition:
ChannelEventHandlersImpl.h:26
DDS_REGISTER_EVENT_HANDLER
#define DDS_REGISTER_EVENT_HANDLER(eventType, eventID, funcType)
Definition:
BaseEventHandlersImpl.h:26
dds::protocol_api::EChannelEvents::OnReplyAddSlot
dds
Miscellaneous functions and helpers are located here.
Definition:
AgentConnectionManager.h:13
dds::protocol_api::EChannelEvents::OnHandshakeOK
BaseEventHandlersImpl.h
ChannelInfo.h
dds::protocol_api::EChannelEvents
EChannelEvents
Channel events, which channels and users of channel objects can subscribe on.
Definition:
ChannelEventHandlersImpl.h:16
dds::protocol_api::EChannelEvents::OnConnected
DDS_END_EVENT_HANDLERS
#define DDS_END_EVENT_HANDLERS
Definition:
BaseEventHandlersImpl.h:24
dds::protocol_api::EChannelEvents::OnHandshakeFailed
dds::protocol_api::EChannelEvents::OnRemoteEndDissconnected
Generated by
1.8.15