ifw-core 6.0.0
Loading...
Searching...
No Matches
iCommMaker.hpp
Go to the documentation of this file.
1
8#ifndef CORE_PROTOCOL_BASE_ICOMMMAKER_HPP
9#define CORE_PROTOCOL_BASE_ICOMMMAKER_HPP
10
11#include <memory>
12
14
15 class IComm;
16
17 // ICommMaker is a public parent of all Comm makers
18 // It represents a function to be invoked when creating new Comm
19 class ICommMaker {
20 public:
21
23
25
26 virtual std::shared_ptr<IComm> Create(const std::string& filename) const = 0;
27 virtual ~ICommMaker() {}
28
29 };
30}
31
32#endif // CORE_PROTOCOL_BASE_ICOMMMAKER_HPP
Definition iCommMaker.hpp:19
virtual ~ICommMaker()
Definition iCommMaker.hpp:27
virtual std::shared_ptr< IComm > Create(const std::string &filename) const =0
Accepts node to pass into Comms constructor.
Definition commFactory.cpp:13