PARTONS/ElementaryUtils  
Basic utility softwares (Logger, threads, etc)
Public Member Functions | Private Attributes | List of all members
ElemUtils::LoggerMessage Class Reference

Public Member Functions

 LoggerMessage (LoggerLevel level, std::string classNameSource, std::string functionNameSource, std::string message)
 
 ~LoggerMessage ()
 
std::string formatDate (const time_t &time) const
 
const std::time_t & getTime () const
 
void setTime (std::time_t time)
 
const std::string & getClassNameSource () const
 
void setClassNameSource (const std::string &classNameSource)
 
const std::string & getFunctionNameSource () const
 
void setFunctionNameSource (const std::string &functionNameSource)
 
const std::string & getMessage () const
 
void setMessage (const std::string &message)
 
LoggerLevel getLevel () const
 
void setLevel (LoggerLevel level)
 
void serialize (std::stringstream &sstream) const
 
std::string toString () const
 

Private Attributes

LoggerLevel m_level
 
std::time_t m_time
 
std::string m_classNameSource
 
std::string m_functionNameSource
 
std::string m_message
 

Constructor & Destructor Documentation

◆ LoggerMessage()

ElemUtils::LoggerMessage::LoggerMessage ( LoggerLevel  level,
std::string  classNameSource,
std::string  functionNameSource,
std::string  message 
)

◆ ~LoggerMessage()

ElemUtils::LoggerMessage::~LoggerMessage ( )

Member Function Documentation

◆ formatDate()

std::string ElemUtils::LoggerMessage::formatDate ( const time_t &  time) const

◆ getClassNameSource()

const std::string & ElemUtils::LoggerMessage::getClassNameSource ( ) const

◆ getFunctionNameSource()

const std::string & ElemUtils::LoggerMessage::getFunctionNameSource ( ) const

◆ getLevel()

LoggerLevel ElemUtils::LoggerMessage::getLevel ( ) const

◆ getMessage()

const std::string & ElemUtils::LoggerMessage::getMessage ( ) const

◆ getTime()

const std::time_t & ElemUtils::LoggerMessage::getTime ( ) const

◆ serialize()

void ElemUtils::LoggerMessage::serialize ( std::stringstream &  sstream) const

◆ setClassNameSource()

void ElemUtils::LoggerMessage::setClassNameSource ( const std::string &  classNameSource)

◆ setFunctionNameSource()

void ElemUtils::LoggerMessage::setFunctionNameSource ( const std::string &  functionNameSource)

◆ setLevel()

void ElemUtils::LoggerMessage::setLevel ( LoggerLevel  level)

◆ setMessage()

void ElemUtils::LoggerMessage::setMessage ( const std::string &  message)

◆ setTime()

void ElemUtils::LoggerMessage::setTime ( std::time_t  time)

◆ toString()

std::string ElemUtils::LoggerMessage::toString ( ) const

Member Data Documentation

◆ m_classNameSource

std::string ElemUtils::LoggerMessage::m_classNameSource
private

◆ m_functionNameSource

std::string ElemUtils::LoggerMessage::m_functionNameSource
private

◆ m_level

LoggerLevel ElemUtils::LoggerMessage::m_level
private

◆ m_message

std::string ElemUtils::LoggerMessage::m_message
private

◆ m_time

std::time_t ElemUtils::LoggerMessage::m_time
private

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