ifw-core  5.0.0-pre2
iCommMaker.hpp
Go to the documentation of this file.
1 
10 #ifndef CORE_PROTOCOL_BASE_ICOMMMAKER_HPP
11 #define CORE_PROTOCOL_BASE_ICOMMMAKER_HPP
12 
13 #include <yaml-cpp/yaml.h>
14 
15 namespace protocol {
16  namespace base {
17 
18  class IComm;
19 
20  // ICommMaker is a public parent of all Comm makers
21  // It represents a function to be invoked when creating new Comm
22  class ICommMaker
23  {
24  public:
25 
27 
29 
30  virtual std::shared_ptr<IComm> Create() const = 0;
31  virtual ~ICommMaker() {}
32 
33  };
34  }
35 }
36 
37 
38 #endif // CORE_PROTOCOL_BASE_ICOMMMAKER_HPP
Definition: iCommMaker.hpp:23
virtual ~ICommMaker()
Definition: iCommMaker.hpp:31
virtual std::shared_ptr< IComm > Create() const =0
Accepts node to pass into Comms constructor.
Definition: commFactory.cpp:15