![]() |
Project
|
Helpers to Serialise / Deserialise ROOT objects using the ConfigParamSpec mechanism. More...
#include <RootConfigParamHelpers.h>
Static Public Member Functions | |
static std::vector< ConfigParamSpec > | asConfigParamSpecsImpl (std::string const &mainkey, TClass *cl, void *obj) |
static void | fillFromPtree (TClass *cl, void *obj, boost::property_tree::ptree const &pt) |
template<typename T > | |
static std::vector< ConfigParamSpec > | asConfigParamSpecs (std::string const &mainKey, T const &proto=T{}) |
template<typename T > | |
static T | as (boost::property_tree::ptree const &pt) |
Helpers to Serialise / Deserialise ROOT objects using the ConfigParamSpec mechanism.
Definition at line 25 of file RootConfigParamHelpers.h.
|
inlinestatic |
Given a ptree use it to create a (ROOT serialised) object of type T, where the default values of the object are overriden by those passed in the ptree.
Definition at line 49 of file RootConfigParamHelpers.h.
|
inlinestatic |
Definition at line 35 of file RootConfigParamHelpers.h.
|
static |
Definition at line 288 of file RootConfigParamHelpers.cxx.
|
static |
Given a TClass, fill the object in obj as if it was member of the former, using the values in the ptree to override, where appropriate.
Definition at line 307 of file RootConfigParamHelpers.cxx.