Motorcortex Core  version: 2.7.6
cm_basereqrep.h
1 /*
2  * Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3  * All rights reserved. Copyright (c) 2016 VECTIONEER.
4  */
5 
6 #ifndef MOTORCORTEX_CORE_CM_BASEREQREP_H
7 #define MOTORCORTEX_CORE_CM_BASEREQREP_H
8 
9 #include "cm_conndata.h"
10 #include "cm_protocoltype.h"
11 #include "cm_groupmanager.h"
12 #include "fmt/format.h"
13 
14 #include <limits>
15 
16 namespace mcx::comm {
17 
19 public:
20 
21  explicit BaseRequestReply(ProtocolType protocol_type) : protocol_type_{protocol_type} {
22 
23  }
24 
25  ProtocolType getProtocolType() const {
26  return protocol_type_;
27  }
28 
29  const GroupManager& getGroupManager() const {
30  return group_manager_;
31  }
32 
33  virtual ~BaseRequestReply() = default;
34 
35 protected:
36 
37  ProtocolType protocol_type_;
38  GroupManager group_manager_;
39 
40 };
41 
42 } // namespace mcx::comm
43 
44 #endif //MOTORCORTEX_CORE_CM_BASEREQREP_H
mcx::comm::GroupManager
Definition: cm_groupmanager.h:55
mcx::comm::BaseRequestReply
Definition: cm_basereqrep.h:18