ROOT
master
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
/*! \class TMVA::OptionBase
30
\ingroup TMVA
31
Class for TMVA-option handling
32
*/
33
34
#include "
TMVA/Option.h
"
35
36
#include "
TMVA/Types.h
"
37
38
#include "
ThreadLocalStorage.h
"
39
#include "
TObject.h
"
40
#include "
TString.h
"
41
42
43
////////////////////////////////////////////////////////////////////////////////
44
/// constructor
45
46
TMVA::OptionBase::OptionBase
(
const
TString
&
name
,
const
TString
& desc )
47
:
TObject
(),
48
fName (
name
),
49
fNameAllLower(
name
),
50
fDescription ( desc ),
51
fIsSet (
kFALSE
)
52
{
53
fNameAllLower
.
ToLower
();
54
}
55
56
////////////////////////////////////////////////////////////////////////////////
57
/// set value for option
58
59
Bool_t
TMVA::OptionBase::SetValue
(
const
TString
& vs,
Int_t
)
60
{
61
fIsSet =
kTRUE
;
62
SetValueLocal(vs);
63
return
kTRUE
;
64
}
65
66
TMVA::MsgLogger
&
TMVA::OptionBase::Log
()
67
{
68
TTHREAD_TLS_DECL_ARG2(
MsgLogger
,logger,
"Option"
,kDEBUG);
// message logger
69
return
logger;
70
}
Option.h
kTRUE
const Bool_t kTRUE
Definition:
RtypesCore.h:91
TString
Basic string class.
Definition:
TString.h:136
TString.h
bool
TMVA::OptionBase::Log
static MsgLogger & Log()
Definition:
Option.cxx:66
kFALSE
const Bool_t kFALSE
Definition:
RtypesCore.h:92
Types.h
TMVA::MsgLogger
ostringstream derivative to redirect and format output
Definition:
MsgLogger.h:59
TObject.h
TObject
Mother of all ROOT objects.
Definition:
TObject.h:37
name
char name[80]
Definition:
TGX11.cxx:110
TMVA::OptionBase::SetValue
virtual Bool_t SetValue(const TString &vs, Int_t i=-1)
set value for option
Definition:
Option.cxx:59
TString::ToLower
void ToLower()
Change string to lower-case.
Definition:
TString.cxx:1125
TMVA::OptionBase::fNameAllLower
TString fNameAllLower
Definition:
Option.h:81
ThreadLocalStorage.h
TMVA::OptionBase::OptionBase
OptionBase(const TString &name, const TString &desc)
constructor
Definition:
Option.cxx:46
int
tmva
tmva
src
Option.cxx
ROOT master - Reference Guide Generated on Tue Jan 26 2021 11:58:58 (GVA Time) using Doxygen 1.9.0