Motorcortex Core  version: 2.7.6
cm_basepub.h
1 /*
2  * Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3  * All rights reserved. Copyright (c) 2016 VECTIONEER.
4  */
5 
6 #ifndef CM_BASEPUB_H
7 #define CM_BASEPUB_H
8 
9 #include "cm_conndata.h"
10 #include "cm_protocoltype.h"
11 
12 namespace mcx::comm {
13 
15 public:
16  virtual bool connect(const ConnectionData& conn_data) = 0;
17 
18  virtual void iterate() = 0;
19 
20  virtual void close() = 0;
21 
22  virtual ProtocolType getProtocolType() const = 0;
23 
24  virtual ~BasePublisher() = default;
25 };
26 
27 } // namespace mcx::comm
28 
29 #endif /*CM_BASEPUB_H*/
mcx::comm::ConnectionData
Definition: cm_conndata.h:18
mcx::comm::BasePublisher
Definition: cm_basepub.h:14