BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
TMVA::MsgLogger Class Reference

Description

Definition at line 42 of file MsgLogger.h.

Inheritance diagram for TMVA::MsgLogger:
[legend]
Collaboration diagram for TMVA::MsgLogger:
[legend]

Public Member Functions

 MsgLogger (const std::string &source)
 
MsgLoggeroperator<< (EMsgType type)
 
MsgLoggeroperator<< (MsgLogger &(*_f)(MsgLogger &))
 
MsgLoggeroperator<< (std::ios &(*_f)(std::ios &))
 
MsgLoggeroperator<< (std::ostream &(*_f)(std::ostream &))
 
template<class T >
MsgLoggeroperator<< (T arg)
 

Private Attributes

std::string fStrSource
 

Constructor & Destructor Documentation

◆ MsgLogger()

TMVA::MsgLogger::MsgLogger ( const std::string &  source)
inline

Definition at line 46 of file MsgLogger.h.

47  : fStrSource(source)
48  {
49  }
std::string fStrSource
Definition: MsgLogger.h:66

Member Function Documentation

◆ operator<<() [1/5]

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

Definition at line 83 of file MsgLogger.h.

83 { *(std::ostringstream*)this << type << " "; return *this; }

◆ operator<<() [2/5]

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

Definition at line 69 of file MsgLogger.h.

69 { return (_f)(*this); }

◆ operator<<() [3/5]

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

Definition at line 77 of file MsgLogger.h.

78 {
79  (_f)(*this);
80  return *this;
81 }

◆ operator<<() [4/5]

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

Definition at line 71 of file MsgLogger.h.

72 {
73  (_f)(*this);
74  return *this;
75 }

◆ operator<<() [5/5]

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

Definition at line 59 of file MsgLogger.h.

60  {
61  *(std::ostringstream*)this << arg;
62  return *this;
63  }

Member Data Documentation

◆ fStrSource

std::string TMVA::MsgLogger::fStrSource
private

Definition at line 66 of file MsgLogger.h.


The documentation for this class was generated from the following file: