FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::LMsg Class Reference

Helper class to create log strings out from separate parts Usage: LMsg("some text") << variable << ", " << other variable. More...

#include <logger.h>

+ Collaboration diagram for FIFE::LMsg:

Public Member Functions

 LMsg (const std::string &msg="")
 
 ~LMsg ()
 
template<typename T >
LMsgoperator<< (const T &t)
 

Public Attributes

std::string str
 

Detailed Description

Helper class to create log strings out from separate parts Usage: LMsg("some text") << variable << ", " << other variable.

Definition at line 82 of file logger.h.

Constructor & Destructor Documentation

◆ LMsg()

FIFE::LMsg::LMsg ( const std::string &  msg = "")
inline

Definition at line 84 of file logger.h.

◆ ~LMsg()

FIFE::LMsg::~LMsg ( )
inline

Definition at line 85 of file logger.h.

Member Function Documentation

◆ operator<<()

template<typename T >
LMsg& FIFE::LMsg::operator<< ( const T &  t)
inline

Definition at line 87 of file logger.h.

References str.

Member Data Documentation

◆ str

std::string FIFE::LMsg::str

Definition at line 94 of file logger.h.

Referenced by FIFE::Logger::log(), and operator<<().


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