Template Class FactoryRegistry#
Defined in File factory_registry.hpp
Class Documentation#
-
template<typename ObjectReturnTypeT>
class FactoryRegistry# Public Static Functions
-
static inline bool contains(const std::string &name)#
-
static inline std::vector<std::string> list()#
- static inline std::shared_ptr<ObjectReturnTypeT> create_object_from_factory(
- const std::string &name,
- nlohmann::json config = {}
- const std::string &name,
- const std::function<std::shared_ptr<ObjectReturnTypeT>(nlohmann::json)> &loader_fn,
- bool throw_if_exists = true
- static inline void unregister_factory_fn(
- const std::string &name,
- bool throw_if_missing = true
-
static inline bool contains(const std::string &name)#