Project
Loading...
Searching...
No Matches
o2::framework::RootConfigParamHelpers Struct Reference

Helpers to Serialise / Deserialise ROOT objects using the ConfigParamSpec mechanism. More...

#include <RootConfigParamHelpers.h>

Static Public Member Functions

static std::vector< ConfigParamSpecasConfigParamSpecsImpl (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< ConfigParamSpecasConfigParamSpecs (std::string const &mainKey, T const &proto=T{})
 
template<typename T >
static T as (boost::property_tree::ptree const &pt)
 

Detailed Description

Helpers to Serialise / Deserialise ROOT objects using the ConfigParamSpec mechanism.

Definition at line 25 of file RootConfigParamHelpers.h.

Member Function Documentation

◆ as()

template<typename T >
static T o2::framework::RootConfigParamHelpers::as ( boost::property_tree::ptree const &  pt)
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.

◆ asConfigParamSpecs()

template<typename T >
static std::vector< ConfigParamSpec > o2::framework::RootConfigParamHelpers::asConfigParamSpecs ( std::string const &  mainKey,
T const &  proto = T{} 
)
inlinestatic

Definition at line 35 of file RootConfigParamHelpers.h.

◆ asConfigParamSpecsImpl()

std::vector< ConfigParamSpec > o2::framework::RootConfigParamHelpers::asConfigParamSpecsImpl ( std::string const &  mainkey,
TClass *  cl,
void obj 
)
static

Definition at line 288 of file RootConfigParamHelpers.cxx.

◆ fillFromPtree()

void o2::framework::RootConfigParamHelpers::fillFromPtree ( TClass *  cl,
void obj,
boost::property_tree::ptree const &  pt 
)
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.


The documentation for this struct was generated from the following files: