DDS  ver. 2.0
SubmitChannel.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 
6 #ifndef __DDS__SubmitChannel__
7 #define __DDS__SubmitChannel__
8 // DDS
9 #include "ClientChannelImpl.h"
10 
11 namespace dds
12 {
13  namespace submit_cmd
14  {
15  class CSubmitChannel : public protocol_api::CClientChannelImpl<CSubmitChannel>
16  {
17  CSubmitChannel(boost::asio::io_service& _service, uint64_t _protocolHeaderID = 0);
18 
20 
21  public:
23  MESSAGE_HANDLER(cmdSIMPLE_MSG, on_cmdSIMPLE_MSG)
24  MESSAGE_HANDLER(cmdSHUTDOWN, on_cmdSHUTDOWN)
25  END_MSG_MAP()
26 
27  public:
28  void setCfgFile(const std::string& _val);
29  void setRMSType(const std::string& _val);
30  void setPath(const std::string& _val);
31  void setNumber(const size_t _val);
32 
33  private:
34  // Message Handlers
36  const protocol_api::SSenderInfo& _sender);
38  const protocol_api::SSenderInfo& _senderb);
39 
40  private:
41  std::string m_sCfgFile;
42  std::string m_sRMS;
43  std::string m_sPath;
44  size_t m_number;
45  bool m_bXMLValidationDisabled;
46  };
47  }
48 }
49 
50 #endif
Definition: BaseEventHandlersImpl.h:48
#define MESSAGE_HANDLER(msg, func)
Definition: BaseChannelImpl.h:112
#define REGISTER_DEFAULT_REMOTE_ID_STRING
Definition: BaseChannelImpl.h:171
std::shared_ptr< SEmptyCmd > ptr_t
Definition: CommandAttachmentImpl.h:66
Definition: ProtocolCommands.h:30
Definition: ProtocolCommands.h:33
BEGIN_MSG_MAP(CSubmitChannel) MESSAGE_HANDLER(cmdSIMPLE_MSG
#define END_MSG_MAP()
Definition: BaseChannelImpl.h:134
Definition: dds-agent/src/AgentConnectionManager.h:18
void setNumber(const size_t _val)
Definition: SubmitChannel.cpp:57
Definition: SubmitChannel.h:15
on_cmdSIMPLE_MSG MESSAGE_HANDLER(cmdSHUTDOWN, on_cmdSHUTDOWN) END_MSG_MAP() public void setRMSType(const std::string &_val)
Definition: SubmitChannel.cpp:47
Definition: BaseChannelImpl.h:41
void setPath(const std::string &_val)
Definition: SubmitChannel.cpp:52