TMVA::MsgLogger Class Reference

#include <MsgLogger.h>

Inheritance diagram for TMVA::MsgLogger:

TObject TObject List of all members.

Public Member Functions

 MsgLogger (const TObject *source, EMsgType minType=kINFO)
 MsgLogger (const std::string &source, EMsgType minType=kINFO)
 MsgLogger (EMsgType minType=kINFO)
 MsgLogger (const MsgLogger &parent)
 ~MsgLogger ()
void SetSource (const std::string &source)
EMsgType GetMinType () const
void SetMinType (EMsgType minType)
std::string GetSource () const
std::string GetPrintedSource () const
std::string GetFormattedSource () const
MsgLoggeroperator= (const MsgLogger &parent)
MsgLoggeroperator<< (MsgLogger &(*_f)(MsgLogger &))
MsgLoggeroperator<< (std::ostream &(*_f)(std::ostream &))
MsgLoggeroperator<< (std::ios &(*_f)(std::ios &))
MsgLoggeroperator<< (EMsgType type)
template<class T>
MsgLoggeroperator<< (T arg)
 MsgLogger (const TObject *source, EMsgType minType=kINFO)
 MsgLogger (const std::string &source, EMsgType minType=kINFO)
 MsgLogger (EMsgType minType=kINFO)
 MsgLogger (const MsgLogger &parent)
 ~MsgLogger ()
void SetSource (const std::string &source)
EMsgType GetMinType () const
void SetMinType (EMsgType minType)
std::string GetSource () const
std::string GetPrintedSource () const
std::string GetFormattedSource () const
MsgLoggeroperator= (const MsgLogger &parent)
MsgLoggeroperator<< (MsgLogger &(*_f)(MsgLogger &))
MsgLoggeroperator<< (std::ostream &(*_f)(std::ostream &))
MsgLoggeroperator<< (std::ios &(*_f)(std::ios &))
MsgLoggeroperator<< (EMsgType type)
template<class T>
MsgLoggeroperator<< (T arg)

Static Public Member Functions

static UInt_t GetMaxSourceSize ()
static MsgLoggerEndmsg (MsgLogger &logger)
static void InhibitOutput ()
static void EnableOutput ()
static UInt_t GetMaxSourceSize ()
static MsgLoggerEndmsg (MsgLogger &logger)
static void InhibitOutput ()
static void EnableOutput ()

Private Member Functions

void Send ()
void InitMaps ()
void WriteMsg (EMsgType type, const std::string &line) const
void Send ()
void InitMaps ()
void WriteMsg (EMsgType type, const std::string &line) const

Private Attributes

const TObjectfObjSource
std::string fStrSource
EMsgType fActiveType
EMsgType fMinType
const TObjectfObjSource

Static Private Attributes

static const std::string fgPrefix
static const std::string fgSuffix
static UInt_t fgMaxSourceSize
static Bool_t fgOutputSupressed
static Bool_t fgInhibitOutput
static Int_t fgInstanceCounter
static std::map< EMsgType,
std::string > * 
fgTypeMap
static std::map< EMsgType,
std::string > * 
fgColorMap
static std::map< EMsgType,
std::string > * 
fgTypeMap
static std::map< EMsgType,
std::string > * 
fgColorMap

Detailed Description

Definition at line 55 of file MsgLogger.h.


Constructor & Destructor Documentation

TMVA::MsgLogger::MsgLogger ( const TObject source,
EMsgType  minType = kINFO 
)

Definition at line 56 of file MsgLogger.cxx.

References fgInstanceCounter, and InitMaps().

TMVA::MsgLogger::MsgLogger ( const std::string source,
EMsgType  minType = kINFO 
)

Definition at line 68 of file MsgLogger.cxx.

References fgInstanceCounter, and InitMaps().

TMVA::MsgLogger::MsgLogger ( EMsgType  minType = kINFO  ) 

Definition at line 80 of file MsgLogger.cxx.

References fgInstanceCounter, and InitMaps().

TMVA::MsgLogger::MsgLogger ( const MsgLogger parent  ) 

Definition at line 92 of file MsgLogger.cxx.

References fgInstanceCounter, and InitMaps().

TMVA::MsgLogger::~MsgLogger (  ) 

Definition at line 104 of file MsgLogger.cxx.

References fgColorMap, fgInstanceCounter, and fgTypeMap.

TMVA::MsgLogger::MsgLogger ( const TObject source,
EMsgType  minType = kINFO 
)

TMVA::MsgLogger::MsgLogger ( const std::string source,
EMsgType  minType = kINFO 
)

TMVA::MsgLogger::MsgLogger ( EMsgType  minType = kINFO  ) 

TMVA::MsgLogger::MsgLogger ( const MsgLogger parent  ) 

TMVA::MsgLogger::~MsgLogger (  ) 


Member Function Documentation

void TMVA::MsgLogger::SetSource ( const std::string source  )  [inline]

Definition at line 66 of file MsgLogger.h.

References fStrSource.

Referenced by TMVA::TransformationHandler::AddTransformation(), TMVA::MethodBase::ReadStateFromStream(), TMVA::MethodBase::ReadStateFromXML(), TMVA::TransformationHandler::SetCallerName(), and TMVA::Ranking::SetContext().

EMsgType TMVA::MsgLogger::GetMinType (  )  const [inline]

Definition at line 67 of file MsgLogger.h.

References fMinType.

Referenced by TMVA::RuleFitParams::FindGDTau(), TMVA::RuleFitParams::MakeGDPath(), and TMVA::RuleEnsemble::Print().

void TMVA::MsgLogger::SetMinType ( EMsgType  minType  )  [inline]

Definition at line 68 of file MsgLogger.h.

References fMinType.

Referenced by TMVA::CostComplexityPruneTool::CostComplexityPruneTool(), TMVA::Reader::Init(), TMVA::MethodPDEFoam::InitFoam(), TMVA::DataSetFactory::InitOptions(), TMVA::MethodBase::ProcessBaseOptions(), TMVA::RuleFit::SetMsgType(), TMVA::RuleFitParams::SetMsgType(), TMVA::Configurable::SetMsgType(), TMVA::Rule::SetMsgType(), TMVA::RuleEnsemble::SetMsgType(), and TMVA::DataSetInfo::SetMsgType().

std::string TMVA::MsgLogger::GetSource (  )  const [inline]

Definition at line 69 of file MsgLogger.h.

References fStrSource.

Referenced by TMVA::SimulatedAnnealing::Minimize().

std::string TMVA::MsgLogger::GetPrintedSource (  )  const

Definition at line 146 of file MsgLogger.cxx.

References fgMaxSourceSize, fgPrefix, fgSuffix, GetFormattedSource(), and i.

Referenced by TMVA::Timer::DrawProgressBar().

std::string TMVA::MsgLogger::GetFormattedSource (  )  const

Definition at line 130 of file MsgLogger.cxx.

References fgMaxSourceSize, fObjSource, fStrSource, and TObject::GetName().

Referenced by GetPrintedSource(), and Send().

static UInt_t TMVA::MsgLogger::GetMaxSourceSize (  )  [inline, static]

Definition at line 73 of file MsgLogger.h.

References fgMaxSourceSize.

Referenced by G__G__TMVA4_127_0_11(), and G__setup_memfuncTMVAcLcLMsgLogger().

TMVA::MsgLogger & TMVA::MsgLogger::operator= ( const MsgLogger parent  ) 

Definition at line 116 of file MsgLogger.cxx.

References fActiveType, fMinType, fObjSource, and fStrSource.

TMVA::MsgLogger & TMVA::MsgLogger::Endmsg ( MsgLogger logger  )  [static]

Definition at line 225 of file MsgLogger.cxx.

References Send().

Referenced by G__G__TMVA4_127_0_13(), and G__setup_memfuncTMVAcLcLMsgLogger().

MsgLogger & TMVA::MsgLogger::operator<< ( MsgLogger &(*)(MsgLogger &)  _f  )  [inline]

Definition at line 123 of file MsgLogger.h.

MsgLogger & TMVA::MsgLogger::operator<< ( std::ostream &(*)(std::ostream &)  _f  )  [inline]

Definition at line 128 of file MsgLogger.h.

MsgLogger & TMVA::MsgLogger::operator<< ( std::ios &(*)(std::ios &)  _f  )  [inline]

Definition at line 134 of file MsgLogger.h.

MsgLogger & TMVA::MsgLogger::operator<< ( EMsgType  type  )  [inline]

Definition at line 140 of file MsgLogger.h.

References fActiveType.

template<class T>
MsgLogger& TMVA::MsgLogger::operator<< ( T  arg  )  [inline]

Definition at line 90 of file MsgLogger.h.

void TMVA::MsgLogger::InhibitOutput (  )  [static]

Definition at line 53 of file MsgLogger.cxx.

References kTRUE.

Referenced by TMVA::Reader::DeclareOptions(), G__G__TMVA4_127_0_16(), G__setup_memfuncTMVAcLcLMsgLogger(), and TMVA::MethodBoost::Train().

void TMVA::MsgLogger::EnableOutput (  )  [static]

Definition at line 54 of file MsgLogger.cxx.

References fgInhibitOutput, and kFALSE.

Referenced by G__G__TMVA4_127_0_17(), G__setup_memfuncTMVAcLcLMsgLogger(), and TMVA::MethodBoost::Train().

void TMVA::MsgLogger::Send (  )  [private]

Definition at line 157 of file MsgLogger.cxx.

References fActiveType, fgMaxSourceSize, fgSuffix, GetFormattedSource(), TMVA::kINFO, kTRUE, line, str, and WriteMsg().

Referenced by Endmsg().

void TMVA::MsgLogger::InitMaps (  )  [private]

Definition at line 233 of file MsgLogger.cxx.

References fgColorMap, fgTypeMap, TMVA::kDEBUG, TMVA::kERROR, TMVA::kFATAL, TMVA::kINFO, TMVA::kSILENT, TMVA::kVERBOSE, and TMVA::kWARNING.

Referenced by MsgLogger().

void TMVA::MsgLogger::WriteMsg ( EMsgType  type,
const std::string line 
) const [private]

Definition at line 190 of file MsgLogger.cxx.

References fgColorMap, fgInhibitOutput, fgPrefix, fgTypeMap, fMinType, TMVA::gConfig(), TMVA::kFATAL, TMVA::kINFO, TMVA::kVERBOSE, and stype.

Referenced by Send().

void TMVA::MsgLogger::SetSource ( const std::string source  )  [inline]

Definition at line 66 of file MsgLogger.h.

References fStrSource.

EMsgType TMVA::MsgLogger::GetMinType (  )  const [inline]

Definition at line 67 of file MsgLogger.h.

References fMinType.

void TMVA::MsgLogger::SetMinType ( EMsgType  minType  )  [inline]

Definition at line 68 of file MsgLogger.h.

References fMinType.

std::string TMVA::MsgLogger::GetSource (  )  const [inline]

Definition at line 69 of file MsgLogger.h.

References fStrSource.

std::string TMVA::MsgLogger::GetPrintedSource (  )  const

std::string TMVA::MsgLogger::GetFormattedSource (  )  const

static UInt_t TMVA::MsgLogger::GetMaxSourceSize (  )  [inline, static]

Definition at line 73 of file MsgLogger.h.

References fgMaxSourceSize.

MsgLogger& TMVA::MsgLogger::operator= ( const MsgLogger parent  ) 

static MsgLogger& TMVA::MsgLogger::Endmsg ( MsgLogger logger  )  [static]

MsgLogger& TMVA::MsgLogger::operator<< ( MsgLogger &(*)(MsgLogger &)  _f  ) 

MsgLogger& TMVA::MsgLogger::operator<< ( std::ostream &(*)(std::ostream &)  _f  ) 

MsgLogger& TMVA::MsgLogger::operator<< ( std::ios &(*)(std::ios &)  _f  ) 

MsgLogger& TMVA::MsgLogger::operator<< ( EMsgType  type  ) 

template<class T>
MsgLogger& TMVA::MsgLogger::operator<< ( T  arg  )  [inline]

Definition at line 90 of file MsgLogger.h.

static void TMVA::MsgLogger::InhibitOutput (  )  [static]

static void TMVA::MsgLogger::EnableOutput (  )  [static]

void TMVA::MsgLogger::Send (  )  [private]

void TMVA::MsgLogger::InitMaps (  )  [private]

void TMVA::MsgLogger::WriteMsg ( EMsgType  type,
const std::string line 
) const [private]


Member Data Documentation

const TObject* TMVA::MsgLogger::fObjSource [private]

Definition at line 106 of file MsgLogger.h.

Referenced by GetFormattedSource(), and operator=().

std::string TMVA::MsgLogger::fStrSource [private]

Definition at line 107 of file MsgLogger.h.

Referenced by GetFormattedSource(), GetSource(), operator=(), and SetSource().

const std::string TMVA::MsgLogger::fgPrefix [static, private]

Definition at line 108 of file MsgLogger.h.

Referenced by GetPrintedSource(), and WriteMsg().

const std::string TMVA::MsgLogger::fgSuffix [static, private]

Definition at line 109 of file MsgLogger.h.

Referenced by GetPrintedSource(), and Send().

EMsgType TMVA::MsgLogger::fActiveType [private]

Definition at line 110 of file MsgLogger.h.

Referenced by operator<<(), operator=(), and Send().

static UInt_t TMVA::MsgLogger::fgMaxSourceSize [static, private]

Definition at line 111 of file MsgLogger.h.

Referenced by GetFormattedSource(), GetMaxSourceSize(), GetPrintedSource(), and Send().

static Bool_t TMVA::MsgLogger::fgOutputSupressed [static, private]

Definition at line 112 of file MsgLogger.h.

static Bool_t TMVA::MsgLogger::fgInhibitOutput [static, private]

Definition at line 113 of file MsgLogger.h.

Referenced by EnableOutput(), and WriteMsg().

Int_t TMVA::MsgLogger::fgInstanceCounter [static, private]

Definition at line 114 of file MsgLogger.h.

Referenced by MsgLogger(), and ~MsgLogger().

std::map< TMVA::EMsgType, std::string > * TMVA::MsgLogger::fgTypeMap [static, private]

Definition at line 116 of file MsgLogger.h.

Referenced by InitMaps(), WriteMsg(), and ~MsgLogger().

std::map< TMVA::EMsgType, std::string > * TMVA::MsgLogger::fgColorMap [static, private]

Definition at line 117 of file MsgLogger.h.

Referenced by InitMaps(), WriteMsg(), and ~MsgLogger().

EMsgType TMVA::MsgLogger::fMinType [private]

Definition at line 118 of file MsgLogger.h.

Referenced by GetMinType(), operator=(), SetMinType(), and WriteMsg().

const TObject* TMVA::MsgLogger::fObjSource [private]

Definition at line 106 of file MsgLogger.h.

std::map<EMsgType, std::string>* TMVA::MsgLogger::fgTypeMap [static, private]

Definition at line 116 of file MsgLogger.h.

std::map<EMsgType, std::string>* TMVA::MsgLogger::fgColorMap [static, private]

Definition at line 117 of file MsgLogger.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:37 2011 for ROOT_528-00b_version by  doxygen 1.5.1