27 #ifndef ROOT_TMVA_Configurable
28 #define ROOT_TMVA_Configurable
45 #ifndef ROOT_TMVA_Option
170 fListOfOptions.Add(o);
171 fLastDeclaredOption = o;
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 AddOptionsXMLTo(void *parent) const
write options to XML file
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 CheckForUnusedOptions() const
checks for unused options in option string
OptionBase * DeclareOptionRef(T &ref, const TString &name, const TString &desc="")
TString fConfigName
option list
virtual ~Configurable()
default destructur
void SplitOptions(const TString &theOpt, TList &loo) const
splits the option string at ':' and fills the list 'loo' with the primitive strings ...
void EnableLooseOptions(Bool_t b=kTRUE)
void WriteOptionsToStream(std::ostream &o, const TString &prefix) const
write options to output stream (e.g. in writing the MVA weight files
virtual void AddPreDefVal(const T &)
const TString & GetReferenceFile() const
#define ClassDef(name, id)
virtual void ParseOptions()
options parser
void SetOptions(const TString &s)
void SetMinType(EMsgType minType)
void PrintOptions() const
prints out the options set in the options string and the defaults
virtual const char * GetName() const
Returns name of object.
void WriteOptionsReferenceToFile()
write complete options to output stream
const char * GetConfigDescription() const
Bool_t fLooseOptionCheckingEnabled
options string
Configurable(const TString &theOption="")
void ResetSetFlag()
resets the IsSet falg for all declare options to be called before options are read from stream ...
const char * GetConfigName() const
void AddPreDefVal(const T &)
Mother of all ROOT objects.
void SetConfigName(const char *n)
Abstract ClassifierFactory template that handles arbitrary types.
virtual void Add(TObject *obj)
const TString & GetOptions() const
Bool_t LooseOptionCheckingEnabled() const
TList fListOfOptions
last declared option
void AssignOpt(const TString &name, T &valAssign) const
message logger
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
OptionBase * fLastDeclaredOption
checker for option string
void SetConfigDescription(const char *d)