27 #ifndef ROOT_TMVA_Configurable 28 #define ROOT_TMVA_Configurable 45 #ifndef ROOT_TMVA_Option 189 if (optname ==
TString(op->TheName())){
196 Log() <<
kFATAL <<
"Option \"" << optname
197 <<
"\" was found, but somehow I could not convert the pointer propperly.. please check the syntax of your option declaration" <<
Endl;
203 Log() <<
kFATAL <<
"Option \"" << optname
204 <<
"\" is not declared, hence cannot add predefined value, please check the syntax of your option declaration" <<
Endl;
214 if (opt!=0) valAssign = ((
Option<T>*)opt)->Value();
217 <<
"\" 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
virtual void SetName(const char *name)
Set the name of the TNamed.
OptionBase * DeclareOptionRef(T &ref, const TString &name, const TString &desc="")
virtual ~Configurable()
default destructur
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
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)
The TNamed class is the base class for all named ROOT classes.
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
void WriteOptionsReferenceToFile()
write complete options to output stream
const char * GetConfigDescription() const
Bool_t fLooseOptionCheckingEnabled
virtual const char * GetName() const
Returns name of object.
Configurable(const TString &theOption="")
constructor
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
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
TList fListOfOptions
last declared option
void AssignOpt(const TString &name, T &valAssign) const
OptionBase * fLastDeclaredOption
void SetConfigDescription(const char *d)