DDS  ver. 2.0
ActivateChannel.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 #ifndef __DDS__ActivateChannel__
6 #define __DDS__ActivateChannel__
7 
8 // DDS
9 #include "ClientChannelImpl.h"
10 #include "Options.h"
11 
12 namespace dds
13 {
14  namespace topology_cmd
15  {
16  class CActivateChannel : public protocol_api::CClientChannelImpl<CActivateChannel>
17  {
18  CActivateChannel(boost::asio::io_service& _service, uint64_t _protocolHeaderID = 0);
19 
21 
22  public:
24  MESSAGE_HANDLER(cmdSIMPLE_MSG, on_cmdSIMPLE_MSG)
25  MESSAGE_HANDLER(cmdSHUTDOWN, on_cmdSHUTDOWN)
26  MESSAGE_HANDLER(cmdPROGRESS, on_cmdPROGRESS)
28 
29  void setOptions(const SOptions& _options)
30  {
31  m_options = _options;
32  }
33 
34  private:
35  // Message Handlers
37  const protocol_api::SSenderInfo& _sender);
39  const protocol_api::SSenderInfo& _sender);
41  const protocol_api::SSenderInfo& _sender);
42 
43  private:
44  SOptions m_options;
45  };
46  }
47 }
48 
49 #endif
Definition: BaseEventHandlersImpl.h:48
#define REGISTER_DEFAULT_REMOTE_ID_STRING
Definition: BaseChannelImpl.h:171
BEGIN_MSG_MAP(CActivateChannel) MESSAGE_HANDLER(cmdSIMPLE_MSG
std::shared_ptr< SEmptyCmd > ptr_t
Definition: CommandAttachmentImpl.h:66
Definition: ProtocolCommands.h:30
Definition: ProtocolCommands.h:59
Definition: ActivateChannel.h:16
Definition: ProtocolCommands.h:33
Definition: dds-agent/src/AgentConnectionManager.h:18
dds-agent-cmd&#39;s container of options
Definition: dds-topology/src/Options.h:35
on_cmdSIMPLE_MSG MESSAGE_HANDLER(cmdSHUTDOWN, on_cmdSHUTDOWN) MESSAGE_HANDLER(cmdPROGRESS
Definition: BaseChannelImpl.h:41
on_cmdSIMPLE_MSG on_cmdPROGRESS END_MSG_MAP() void setOptions(const SOptions &_options)
Definition: ActivateChannel.h:27