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)
EMsgType GetMinType() const
MsgLogger & operator<<(MsgLogger &(*_f)(MsgLogger &))
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 ...
static const std::string fgPrefix
void Send()
activates the logger writer
std::string GetSource() const
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
MsgLogger & operator=(const MsgLogger &parent)
assingment operator
std::string GetPrintedSource() const
the full logger prefix
void InitMaps()
Create the message type and color maps.
static const std::string fgSuffix
static MsgLogger & Endmsg(MsgLogger &logger)
end line
static const std::map< EMsgType, std::string > * fgColorMap
std::string GetFormattedSource() const
make sure the source name is no longer than fgMaxSourceSize:
Mother of all ROOT objects.
void SetSource(const std::string &source)
Abstract ClassifierFactory template that handles arbitrary types.
static void EnableOutput()