30 #ifndef ROOT_TMVA_MsgLogger 31 #define ROOT_TMVA_MsgLogger 46 #if __cplusplus > 199711L 64 MsgLogger(
const std::string& source, EMsgType minType = kINFO );
95 *(std::ostringstream*)
this << arg;
108 void WriteMsg( EMsgType type,
const std::string&
line )
const;
116 #if __cplusplus > 199711L 120 static std::atomic<const std::map<EMsgType, std::string>*>
fgTypeMap;
121 static std::atomic<const std::map<EMsgType, std::string>*>
fgColorMap;
126 static const std::map<EMsgType, std::string>*
fgTypeMap;
162 #endif // TMVA_MsgLogger MsgLogger & Endl(MsgLogger &ml)
MsgLogger & operator<<(MsgLogger &(*_f)(MsgLogger &))
static const std::string fgPrefix
EMsgType GetMinType() const
void Send()
activates the logger writer
const TObject * fObjSource
static Bool_t fgInhibitOutput
static void InhibitOutput()
#define ClassDef(name, id)
static const std::map< EMsgType, std::string > * fgTypeMap
static const UInt_t fgMaxSourceSize
void SetMinType(EMsgType minType)
static UInt_t GetMaxSourceSize()
MsgLogger(const TObject *source, EMsgType minType=kINFO)
constructor
static Bool_t fgOutputSupressed
std::string GetPrintedSource() const
the full logger prefix
MsgLogger & operator=(const MsgLogger &parent)
assignment operator
void WriteMsg(EMsgType type, const std::string &line) const
putting the output string, the message type, and the color switcher together into a single string ...
void InitMaps()
Create the message type and color maps.
static const std::string fgSuffix
static MsgLogger & Endmsg(MsgLogger &logger)
end line
std::string GetFormattedSource() const
make sure the source name is no longer than fgMaxSourceSize:
ostringstream derivative to redirect and format output
static const std::map< EMsgType, std::string > * fgColorMap
Mother of all ROOT objects.
void SetSource(const std::string &source)
Abstract ClassifierFactory template that handles arbitrary types.
std::string GetSource() const
static void EnableOutput()