Project
Loading...
Searching...
No Matches
o2::conf::ConfigurableParamPromoter< P, Base > Class Template Reference

#include <ConfigurableParamHelper.h>

Inherits Base, and o2::conf::ConfigurableParam.

Public Member Functions

Base detach () const
 
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 }
 
- Public Attributes inherited from Base
int b = 0
 
- 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, typename Base>
class o2::conf::ConfigurableParamPromoter< P, Base >

Definition at line 207 of file ConfigurableParamHelper.h.

Member Function Documentation

◆ ConfigurableParam()

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

Definition at line 277 of file ConfigurableParam.cxx.

◆ detach()

template<typename P , typename Base >
Base o2::conf::ConfigurableParamPromoter< P, Base >::detach ( ) const
inline

Definition at line 218 of file ConfigurableParamHelper.h.

◆ getDataMembers()

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

Definition at line 267 of file ConfigurableParamHelper.h.

◆ getHash()

template<typename P , typename Base >
size_t o2::conf::ConfigurableParamPromoter< P, Base >::getHash ( ) const
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 250 of file ConfigurableParamHelper.h.

◆ getMemberProvenance()

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

Implements o2::conf::ConfigurableParam.

Definition at line 232 of file ConfigurableParamHelper.h.

◆ getName()

template<typename P , typename Base >
std::string o2::conf::ConfigurableParamPromoter< P, Base >::getName ( ) const
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 225 of file ConfigurableParamHelper.h.

◆ initFrom()

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

Implements o2::conf::ConfigurableParam.

Definition at line 303 of file ConfigurableParamHelper.h.

◆ Instance()

template<typename P , typename Base >
static const P & o2::conf::ConfigurableParamPromoter< P, Base >::Instance ( )
inlinestatic

Definition at line 212 of file ConfigurableParamHelper.h.

◆ output()

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

Implements o2::conf::ConfigurableParam.

Definition at line 257 of file ConfigurableParamHelper.h.

◆ printKeyValues()

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

Implements o2::conf::ConfigurableParam.

Definition at line 240 of file ConfigurableParamHelper.h.

◆ putKeyValues()

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

Implements o2::conf::ConfigurableParam.

Definition at line 291 of file ConfigurableParamHelper.h.

◆ serializeTo()

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

Implements o2::conf::ConfigurableParam.

Definition at line 336 of file ConfigurableParamHelper.h.

◆ syncCCDBandRegistry()

template<typename P , typename Base >
void o2::conf::ConfigurableParamPromoter< P, Base >::syncCCDBandRegistry ( void externalobj)
inlinefinalvirtual

Implements o2::conf::ConfigurableParam.

Definition at line 320 of file ConfigurableParamHelper.h.


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