30 #ifndef ROOT_TMVA_MsgLogger 31 #define ROOT_TMVA_MsgLogger 46 #if __cplusplus > 199711L 55 #ifndef ROOT_TMVA_Types 99 *(std::ostringstream*)
this << arg;
120 #if __cplusplus > 199711L 124 static std::atomic<const std::map<EMsgType, std::string>*>
fgTypeMap;
125 static std::atomic<const std::map<EMsgType, std::string>*>
fgColorMap;
130 static const std::map<EMsgType, std::string>*
fgTypeMap;
166 #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)
assingment 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:
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()