fast::ProcessObjectRegistry class

This class implements the C++ registry pattern which is used to keep a registry of process objects so that we can instantiate process objects using only a string of its name.

Public types

using ctor_t = std::function<std::shared_ptr<ProcessObject>()>
using map_t = std::unordered_map<std::string, ctor_t>

Public static functions

static auto create(const std::string& class_name) -> std::shared_ptr<ProcessObject>
static auto registerPO(const std::string& class_name, const ctor_t& ctor) -> bool
static auto isPORegistered(const std::string& class_name) -> bool
static void unregisterPO(const std::string& class_name)