Project
Loading...
Searching...
No Matches
o2::conf::ConfigurableParamHelper< P > Class Template Reference

#include <ConfigurableParamHelper.h>

Inherits o2::conf::ConfigurableParam.

Public Member Functions

std::string getName () const final
 
EParamProvenance getMemberProvenance (const std::string &key) const final
 
void printKeyValues (bool showProv=true, bool useLogger=false) const final
 
size_t getHash () const final
 
void output (std::ostream &out) const final
 
std::vector< ParamDataMember > * getDataMembers () const
 
void putKeyValues (boost::property_tree::ptree *tree) final
 
void initFrom (TFile *file) final
 
void syncCCDBandRegistry (void *externalobj) final
 
void serializeTo (TFile *file) const final
 
 ConfigurableParam ()
 

Static Public Member Functions

static const P & Instance ()
 
- Static Public Member Functions inherited from o2::conf::ConfigurableParam
static std::string toString (EParamProvenance p)
 
static EParamProvenance getProvenance (const std::string &key)
 
static void printAllRegisteredParamNames ()
 
static void printAllKeyValuePairs (bool useLogger=false)
 
static const std::string & getOutputDir ()
 
static void setOutputDir (const std::string &d)
 
static bool configFileExists (std::string const &filepath)
 
static void writeJSON (std::string const &filename, std::string const &keyOnly="")
 
static void writeINI (std::string const &filename, std::string const &keyOnly="")
 
template<typename T >
static T getValueAs (std::string key)
 
template<typename T >
static void setValue (std::string const &mainkey, std::string const &subkey, T x)
 
static void setProvenance (std::string const &mainkey, std::string const &subkey, EParamProvenance p)
 
static void setValue (std::string const &key, std::string const &valuestring)
 
static void setEnumValue (const std::string &, const std::string &)
 
static void setArrayValue (const std::string &, const std::string &)
 
static void setValues (std::vector< std::pair< std::string, std::string > > const &keyValues)
 
static void initialize ()
 
static void toCCDB (std::string filename)
 
static void fromCCDB (std::string filename)
 
static void updateFromString (std::string const &)
 
static void updateFromFile (std::string const &, std::string const &paramsList="", bool unchangedOnly=false)
 

Additional Inherited Members

- Public Types inherited from o2::conf::ConfigurableParam
enum  EParamProvenance { kCODE , kCCDB , kRT }
 
enum class  EParamUpdateStatus { Changed , Unchanged , Failed }
 
- Protected Member Functions inherited from o2::conf::ConfigurableParam
 ConfigurableParam ()
 
virtual ~ConfigurableParam ()=default
 
void setRegisterMode (bool b)
 
bool isInitialized () const
 
- Static Protected Member Functions inherited from o2::conf::ConfigurableParam
static void initPropertyTree ()
 
static EParamUpdateStatus updateThroughStorageMap (std::string, std::string, std::type_info const &, void *)
 
static EParamUpdateStatus updateThroughStorageMapWithConversion (std::string const &, std::string const &)
 
- Static Protected Attributes inherited from o2::conf::ConfigurableParam
static std::map< std::string, std::pair< std::type_info const &, void * > > * sKeyToStorageMap = nullptr
 
static std::map< std::string, ConfigurableParam::EParamProvenance > * sValueProvenanceMap = nullptr
 
static EnumRegistrysEnumRegistry = nullptr
 
static std::string sOutputDir = ""
 

Detailed Description

template<typename P>
class o2::conf::ConfigurableParamHelper< P >

Definition at line 77 of file ConfigurableParamHelper.h.

Member Function Documentation

◆ ConfigurableParam()

template<typename P >
o2::conf::ConfigurableParam::ConfigurableParam ( )

Definition at line 277 of file ConfigurableParam.cxx.

◆ getDataMembers()

template<typename P >
std::vector< ParamDataMember > * o2::conf::ConfigurableParamHelper< P >::getDataMembers ( ) const
inline

Definition at line 130 of file ConfigurableParamHelper.h.

◆ getHash()

template<typename P >
size_t o2::conf::ConfigurableParamHelper< P >::getHash ( ) const
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 113 of file ConfigurableParamHelper.h.

◆ getMemberProvenance()

template<typename P >
EParamProvenance o2::conf::ConfigurableParamHelper< P >::getMemberProvenance ( const std::string &  key) const
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 95 of file ConfigurableParamHelper.h.

◆ getName()

template<typename P >
std::string o2::conf::ConfigurableParamHelper< P >::getName ( ) const
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 88 of file ConfigurableParamHelper.h.

◆ initFrom()

template<typename P >
void o2::conf::ConfigurableParamHelper< P >::initFrom ( TFile *  file)
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 164 of file ConfigurableParamHelper.h.

◆ Instance()

template<typename P >
static const P & o2::conf::ConfigurableParamHelper< P >::Instance ( )
inlinestatic

Definition at line 81 of file ConfigurableParamHelper.h.

◆ output()

template<typename P >
void o2::conf::ConfigurableParamHelper< P >::output ( std::ostream &  out) const
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 120 of file ConfigurableParamHelper.h.

◆ printKeyValues()

template<typename P >
void o2::conf::ConfigurableParamHelper< P >::printKeyValues ( bool  showProv = true,
bool  useLogger = false 
) const
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 103 of file ConfigurableParamHelper.h.

◆ putKeyValues()

template<typename P >
void o2::conf::ConfigurableParamHelper< P >::putKeyValues ( boost::property_tree::ptree *  tree)
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 152 of file ConfigurableParamHelper.h.

◆ serializeTo()

template<typename P >
void o2::conf::ConfigurableParamHelper< P >::serializeTo ( TFile *  file) const
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 197 of file ConfigurableParamHelper.h.

◆ syncCCDBandRegistry()

template<typename P >
void o2::conf::ConfigurableParamHelper< P >::syncCCDBandRegistry ( void externalobj)
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 181 of file ConfigurableParamHelper.h.


The documentation for this class was generated from the following file: