iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Protected Member Functions | List of all members
imstk::LogMessageBase Class Reference
Inheritance diagram for imstk::LogMessageBase:
Inheritance graph
[legend]

Public Member Functions

 LogMessageBase (LoggerSynchronous *logger, int level)
 
template<typename T >
LogMessageBaseoperator<< (T &&input)
 
LogMessageBaseoperator<< (std::ios_base &(*manipulator)(std::ios_base &))
 
LogMessageBaseoperator<< (std::ostream &(*manipulator)(std::ostream &))
 

Protected Member Functions

std::string getMessage ()
 
void flush ()
 write the current message to the logger
 

Detailed Description

Definition at line 213 of file imstkLoggerSynchronous.h.

Constructor & Destructor Documentation

◆ LogMessageBase()

imstk::LogMessageBase::LogMessageBase ( LoggerSynchronous logger,
int  level 
)

Construct a LogMessage

Parameters
loggerThe logger to be used
levelThe logging level for this message

Definition at line 82 of file imstkLoggerSynchronous.cpp.

Member Function Documentation

◆ getMessage()

std::string imstk::LogMessageBase::getMessage ( )
inlineprotected
Returns
the current content of the message to be logged

Definition at line 255 of file imstkLoggerSynchronous.h.

◆ operator<<()

template<typename T >
LogMessageBase& imstk::LogMessageBase::operator<< ( T &&  input)
inline

Add the given input to the current log message.

Parameters
inputThe input to be added to the current stream

Definition at line 229 of file imstkLoggerSynchronous.h.


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