LOGO

RestFrames  v1.0.1
RestFrames HEP Event Analysis Software Library
Public Member Functions | Static Public Member Functions | Friends | List of all members
RestFrames::RFLog Class Reference

Detailed Description

Definition at line 51 of file RFLog.hh.

Public Member Functions

 RFLog (const std::string &source, LogType def_type=LogInfo)
 Standard constructor. More...
 
 RFLog ()
 Empty constructor.
 
void SetSource (const std::string &source)
 Sets name of instance that is associated with. More...
 
RFLogoperator<< (LogType type)
 Overloading operator. More...
 
RFLogoperator<< (RFLog &(*_f)(RFLog &))
 Overloading operator. More...
 
RFLogoperator<< (std::ostream &(*_f)(std::ostream &))
 Overloading operator. More...
 
RFLogoperator<< (std::ios &(*_f)(std::ios &))
 Overloading operator. More...
 
template<class T >
RFLogoperator<< (T arg)
 Prints a stream for any RFBase or RFList inheriting object. More...
 
template<>
RFLogoperator<< (const RFBase *arg)
 
template<>
RFLogoperator<< (const RFBaseList *arg)
 

Static Public Member Functions

static RFLogEndMessage (RFLog &log)
 Sets end message for log More...
 

Friends

void SetLogPrint (bool print)
 Sets logging to print (print = true) or to not print (print = false) More...
 
void SetLogPrint (LogType type, bool print)
 Sets a type of logging to print (print = true) or to not print (print = false) More...
 
void SetLogStream (std::ostream *ostr)
 Sets output stream. More...
 
void SetLogColor (bool color)
 Sets color of message. More...
 
void SetLogMaxWidth (int NMAX)
 Sets maximum width of message. More...
 

Constructor & Destructor Documentation

◆ RFLog()

RestFrames::RFLog::RFLog ( const std::string &  source,
LogType  def_type = LogInfo 
)

Standard constructor.

Parameters
sourceName of instance that is associated with
def_typeLogtype

Definition at line 45 of file RFLog.cc.

Member Function Documentation

◆ EndMessage()

RFLog & RestFrames::RFLog::EndMessage ( RFLog log)
static

Sets end message for log

Parameters
logRFLog object

Definition at line 166 of file RFLog.cc.

◆ operator<<() [1/5]

RFLog & RestFrames::RFLog::operator<< ( LogType  type)
inline

Overloading operator.

Parameters
typeLogType

Definition at line 172 of file RFLog.hh.

◆ operator<<() [2/5]

RFLog & RestFrames::RFLog::operator<< ( RFLog &(*)(RFLog &)  _f)
inline

Overloading operator.

Parameters
typeRFLog Object

Definition at line 158 of file RFLog.hh.

◆ operator<<() [3/5]

RFLog & RestFrames::RFLog::operator<< ( std::ios &(*)(std::ios &)  _f)
inline

Overloading operator.

Parameters
iosInput-output stream

Definition at line 167 of file RFLog.hh.

◆ operator<<() [4/5]

RFLog & RestFrames::RFLog::operator<< ( std::ostream &(*)(std::ostream &)  _f)
inline

Overloading operator.

Parameters
ostreamStream

Definition at line 162 of file RFLog.hh.

◆ operator<<() [5/5]

template<class T >
RFLog& RestFrames::RFLog::operator<< ( arg)
inline

Prints a stream for any RFBase or RFList inheriting object.

Parameters
argRFBase or RFList inheriting object

Definition at line 126 of file RFLog.hh.

◆ SetSource()

void RestFrames::RFLog::SetSource ( const std::string &  source)

Sets name of instance that is associated with.

Parameters
sourceName to be set

Definition at line 182 of file RFLog.cc.

Friends And Related Function Documentation

◆ SetLogColor

void SetLogColor ( bool  color = true)
friend

Sets color of message.

Parameters
color

Definition at line 200 of file RFLog.cc.

◆ SetLogMaxWidth

void SetLogMaxWidth ( int  NMAX)
friend

Sets maximum width of message.

Parameters
NMAXMaximum width of message
Warning
If NMAX is not bigger than 0, it won't be set

Definition at line 204 of file RFLog.cc.

◆ SetLogPrint [1/2]

void SetLogPrint ( bool  print = true)
friend

Sets logging to print (print = true) or to not print (print = false)

Parameters
printBoolean to be set

Definition at line 190 of file RFLog.cc.

◆ SetLogPrint [2/2]

void SetLogPrint ( LogType  type,
bool  print = true 
)
friend

Sets a type of logging to print (print = true) or to not print (print = false)

Parameters
printBoolean to be set
typeLogType

Definition at line 186 of file RFLog.cc.

◆ SetLogStream

void SetLogStream ( std::ostream *  ostr)
friend

Sets output stream.

Parameters
ostrStream to be set

Definition at line 196 of file RFLog.cc.


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