27 #ifndef ROOT_TMVA_Configurable 28 #define ROOT_TMVA_Configurable 45 #ifndef ROOT_TMVA_Option 192 if (optname ==
TString(op->TheName())){
199 Log() <<
kFATAL <<
"Option \"" << optname
200 <<
"\" was found, but somehow I could not convert the pointer propperly.. please check the syntax of your option declaration" <<
Endl;
206 Log() <<
kFATAL <<
"Option \"" << optname
207 <<
"\" is not declared, hence cannot add predefined value, please check the syntax of your option declaration" <<
Endl;
217 if (opt!=0) valAssign = ((
Option<T>*)opt)->Value();
220 <<
"\" not declared, please check the syntax of your option string" <<
Endl;
void SetMsgType(EMsgType t)
MsgLogger & Endl(MsgLogger &ml)
void ReadOptionsFromXML(void *node)
TString fConfigDescription
void ReadOptionsFromStream(std::istream &istr)
read option back from the weight file
void AssignOpt(const TString &name, T &valAssign) const
message logger
OptionBase * DeclareOptionRef(T &ref, const TString &name, const TString &desc="")
TString fConfigName
option list
virtual ~Configurable()
default destructur
const TString & GetReferenceFile() const
void EnableLooseOptions(Bool_t b=kTRUE)
virtual void AddPreDefVal(const T &)
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
#define ClassDef(name, id)
const char * GetConfigName() const
virtual void ParseOptions()
options parser
void SetOptions(const TString &s)
void SetMinType(EMsgType minType)
void SplitOptions(const TString &theOpt, TList &loo) const
splits the option string at ':' and fills the list 'loo' with the primitive strings ...
void WriteOptionsReferenceToFile()
write complete options to output stream
Bool_t fLooseOptionCheckingEnabled
options string
Configurable(const TString &theOption="")
constructor
void PrintOptions() const
prints out the options set in the options string and the defaults
void ResetSetFlag()
resets the IsSet falg for all declare options to be called before options are read from stream ...
void AddPreDefVal(const T &)
Bool_t LooseOptionCheckingEnabled() const
const TString & GetOptions() const
Mother of all ROOT objects.
void SetConfigName(const char *n)
Abstract ClassifierFactory template that handles arbitrary types.
const char * GetConfigDescription() const
virtual void Add(TObject *obj)
TList fListOfOptions
last declared option
void AddOptionsXMLTo(void *parent) const
write options to XML file
virtual const char * GetName() const
Returns name of object.
void CheckForUnusedOptions() const
checks for unused options in option string
OptionBase * fLastDeclaredOption
checker for option string
void WriteOptionsToStream(std::ostream &o, const TString &prefix) const
write options to output stream (e.g. in writing the MVA weight files
void SetConfigDescription(const char *d)