ZeroErr
载入中...
搜索中...
未找到
zeroerr::LogMessage结构体 参考abstract

LogMessage is a class to store the log message. 更多...

#include <log.h>

类 zeroerr::LogMessage 继承关系图:
zeroerr::LogMessage 的协作图:

Public 成员函数

 LogMessage ()
 
virtual std::string str () const =0
 
virtual void * getRawLog (std::string name) const =0
 
virtual std::map< std::string, std::string > getData () const =0
 

Public 属性

const LogInfoinfo
 
std::chrono::system_clock::time_point time
 

详细描述

LogMessage is a class to store the log message.

LogMessage is a class to store the log message and a base class for all the messages implementation. You can create a log message with any type of arguments and it will store the arguments in a tuple. The log message can be converted to a string with the str() function. You can also get the raw pointer of the arguments with the getRawLog() function.

构造及析构函数说明

◆ LogMessage()

zeroerr::LogMessage::LogMessage ( )
inline

成员函数说明

◆ getData()

virtual std::map< std::string, std::string > zeroerr::LogMessage::getData ( ) const
pure virtual

zeroerr::LogMessageImpl< T > 内被实现.

◆ getRawLog()

virtual void * zeroerr::LogMessage::getRawLog ( std::string  name) const
pure virtual

zeroerr::LogMessageImpl< T > 内被实现.

◆ str()

virtual std::string zeroerr::LogMessage::str ( ) const
pure virtual

zeroerr::LogMessageImpl< T > 内被实现.

类成员变量说明

◆ info

const LogInfo* zeroerr::LogMessage::info

◆ time

std::chrono::system_clock::time_point zeroerr::LogMessage::time

该结构体的文档由以下文件生成: