27#ifndef ROOT_TMVA_Configurable
28#define ROOT_TMVA_Configurable
161 fListOfOptions.Add(o);
162 fLastDeclaredOption = o;
183 if (optname ==
TString(op->TheName())){
190 Log() << kFATAL <<
"Option \"" << optname
191 <<
"\" was found, but somehow I could not convert the pointer properly.. please check the syntax of your option declaration" <<
Endl;
197 Log() << kFATAL <<
"Option \"" << optname
198 <<
"\" is not declared, hence cannot add predefined value, please check the syntax of your option declaration" <<
Endl;
208 if (opt!=0) valAssign = ((
Option<T>*)opt)->Value();
210 Log() << kFATAL <<
"Option \"" <<
name
211 <<
"\" not declared, please check the syntax of your option string" <<
Endl;
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDef(name, id)
void Add(TObject *obj) override
void SetConfigDescription(const char *d)
const TString & GetReferenceFile() const
void ReadOptionsFromXML(void *node)
Bool_t LooseOptionCheckingEnabled() const
OptionBase * DeclareOptionRef(T &ref, const TString &name, const TString &desc="")
TString fReferenceFile
reference file for options writing
void AddPreDefVal(const T &)
OptionBase * fLastDeclaredOption
! last declared option
void AssignOpt(const TString &name, T &valAssign) const
void SetConfigName(const char *n)
void ResetSetFlag()
resets the IsSet flag for all declare options to be called before options are read from stream
const char * GetConfigName() const
const char * GetConfigDescription() const
virtual ~Configurable()
default destructor
OptionBase * DeclareOptionRef(T *&ref, Int_t size, const TString &name, const TString &desc="")
void WriteOptionsReferenceToFile()
write complete options to output stream
void WriteOptionsToStream(std::ostream &o, const TString &prefix) const
write options to output stream (e.g. in writing the MVA weight files
TString fConfigDescription
description of this configurable
TList fListOfOptions
option list
virtual void ParseOptions()
options parser
const TString & GetOptions() const
MsgLogger * fLogger
! message logger
TString fOptions
options string
void SetMsgType(EMsgType t)
void PrintOptions() const
prints out the options set in the options string and the defaults
void CheckForUnusedOptions() const
checks for unused options in option string
void SplitOptions(const TString &theOpt, TList &loo) const
splits the option string at ':' and fills the list 'loo' with the primitive strings
Bool_t fLooseOptionCheckingEnabled
checker for option string
void ReadOptionsFromStream(std::istream &istr)
read option back from the weight file
void EnableLooseOptions(Bool_t b=kTRUE)
void AddOptionsXMLTo(void *parent) const
write options to XML file
void SetOptions(const TString &s)
ostringstream derivative to redirect and format output
void SetMinType(EMsgType minType)
Class for TMVA-option handling.
virtual void AddPreDefVal(const T &)
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
Mother of all ROOT objects.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
create variable transformations
MsgLogger & Endl(MsgLogger &ml)