7#ifndef CORE_PROTOCOL_BASE_COMMMAKER_HPP
8#define CORE_PROTOCOL_BASE_COMMMAKER_HPP
29 virtual std::shared_ptr<IComm>
Create(
const std::string& filename)
const {
30 return std::make_shared<T>(filename);
void RegisterMaker(const std::string &key, ICommMaker *maker)
Definition commFactory.cpp:20
static CommFactory & Instance()
Definition commFactory.cpp:15
CommMaker(const std::string &key)
Definition commMaker.hpp:25
virtual std::shared_ptr< IComm > Create(const std::string &filename) const
Accepts node to pass into Comms constructor.
Definition commMaker.hpp:29
Definition iCommMaker.hpp:18
Definition commFactory.cpp:13