ezconfig
Create C++ Objects from Yaml and Json
|
Yaml factory forward declarations. More...
Go to the source code of this file.
Classes | |
struct | YAML::convert< std::shared_ptr< Base > > |
Converter yaml -> std::shared_ptr<Base> using yaml::Create(). More... | |
struct | YAML::convert< std::unique_ptr< Base > > |
Converter yaml -> std::unique_ptr<Base> using yaml::Create(). More... | |
Namespaces | |
namespace | YAML |
YAML forward declarations. | |
Concepts | |
concept | ezconfig::yaml::Constructible |
Macros | |
#define | EZ_YAML_DECLARE(Base) |
Declare a global yaml factory for a base class. | |
Functions | |
template<typename Base > | |
std::unique_ptr< Base > | ezconfig::yaml::Create (const YAML::Node &y) |
Create an object from yaml using the global factory. | |
Yaml factory forward declarations.
Include this file in the header for the base class.
Definition in file yaml_fwd.hpp.
#define EZ_YAML_DECLARE | ( | Base | ) |
Declare a global yaml factory for a base class.
Do this in the base class header file.
Base | factory base class. |
The factory creates pointers to Base.
Example: Declare a MyBase yaml factory.
Definition at line 57 of file yaml_fwd.hpp.
std::unique_ptr< Base > ezconfig::yaml::Create | ( | const YAML::Node & | y | ) |