ZeroErr
zeroerr::LogMessageImpl< T > Struct Template Referencefinal

LogMessageImpl is the implementation of the LogMessage. More...

#include <log.h>

Inheritance diagram for zeroerr::LogMessageImpl< T >:
Collaboration diagram for zeroerr::LogMessageImpl< T >:

Classes

struct  GetTuplePtr
 
struct  PrintTupleData
 

Public Member Functions

 LogMessageImpl (T... args)
 
std::string str () const override
 
void * getRawLog (std::string name) const override
 
std::map< std::string, std::string > getData () const override
 
- Public Member Functions inherited from zeroerr::LogMessage
 LogMessage ()
 

Public Attributes

std::tuple< T... > args
 
- Public Attributes inherited from zeroerr::LogMessage
const LogInfoinfo
 
std::chrono::system_clock::time_point time
 

Detailed Description

template<typename... T>
struct zeroerr::LogMessageImpl< T >

LogMessageImpl is the implementation of the LogMessage.

LogMessageImpl is the implementation of the LogMessage. It stores the arguments in a tuple and provides the str() function to convert the log message to a string. All fields could be accessed by getRawLog() or getData().

Constructor & Destructor Documentation

◆ LogMessageImpl()

template<typename... T>
zeroerr::LogMessageImpl< T >::LogMessageImpl ( T...  args)
inline

Member Function Documentation

◆ getData()

template<typename... T>
std::map<std::string, std::string> zeroerr::LogMessageImpl< T >::getData ( ) const
inlineoverridevirtual

Implements zeroerr::LogMessage.

◆ getRawLog()

template<typename... T>
void* zeroerr::LogMessageImpl< T >::getRawLog ( std::string  name) const
inlineoverridevirtual

Implements zeroerr::LogMessage.

◆ str()

template<typename... T>
std::string zeroerr::LogMessageImpl< T >::str ( ) const
inlineoverridevirtual

Implements zeroerr::LogMessage.

Member Data Documentation

◆ args

template<typename... T>
std::tuple<T...> zeroerr::LogMessageImpl< T >::args

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