Logo ROOT   6.07/09
Reference Guide
Option.cxx
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : Option *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Implementation *
12  * *
13  * Authors (alphabetical): *
14  * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15  * Joerg Stelzer <Joerg.Stelzer@cern.ch> - CERN, Switzerland *
16  * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
17  * *
18  * Copyright (c) 2005: *
19  * CERN, Switzerland *
20  * U. of Victoria, Canada *
21  * MPI-K Heidelberg, Germany *
22  * LAPP, Annecy, France *
23  * *
24  * Redistribution and use in source and binary forms, with or without *
25  * modification, are permitted according to the terms listed in LICENSE *
26  * (http://mva.sourceforge.net/license.txt) *
27  **********************************************************************************/
28 
29 #include "TMVA/Option.h"
30 
31 #include "TMVA/Types.h"
32 
33 #include "ThreadLocalStorage.h"
34 #include "TObject.h"
35 #include "TString.h"
36 
37 
38 ////////////////////////////////////////////////////////////////////////////////
39 /// constructor
40 
42  : TObject(),
43  fName ( name ),
44  fNameAllLower( name ),
45  fDescription ( desc ),
46  fIsSet ( kFALSE )
47 {
49 }
50 
51 ////////////////////////////////////////////////////////////////////////////////
52 /// set value for option
53 
55 {
56  fIsSet = kTRUE;
57  SetValueLocal(vs);
58  return kTRUE;
59 }
60 
62 {
63  TTHREAD_TLS_DECL_ARG2(MsgLogger,logger,"Option",kDEBUG); // message logger
64  return logger;
65 }
static MsgLogger & Log()
Definition: Option.cxx:61
Basic string class.
Definition: TString.h:137
void ToLower()
Change string to lower-case.
Definition: TString.cxx:1089
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
OptionBase(const TString &name, const TString &desc)
constructor
Definition: Option.cxx:41
virtual Bool_t SetValue(const TString &vs, Int_t i=-1)
set value for option
Definition: Option.cxx:54
TString fNameAllLower
Definition: Option.h:90
Mother of all ROOT objects.
Definition: TObject.h:44
Bool_t fIsSet
Definition: Option.h:92
virtual void SetValueLocal(const TString &vs, Int_t i=-1)=0
const Bool_t kTRUE
Definition: Rtypes.h:91
char name[80]
Definition: TGX11.cxx:109