MIRA
Public Member Functions | Public Attributes | List of all members
LogCustomizableFormatter::Generic< T > Class Template Reference

Generic format, used to write various data to the log format. More...

#include <error/LogCustomizableFormatter.h>

Inheritance diagram for LogCustomizableFormatter::Generic< T >:
Inheritance graph
[legend]

Public Member Functions

 Generic (const T &iData)
 
void format (const LogRecord &record, std::ostringstream &ioStream)
 Called by LogCustomizableFormatter whenever a new log entry is getting formatted. More...
 

Public Attributes

data
 

Detailed Description

template<typename T>
class mira::LogCustomizableFormatter::Generic< T >

Generic format, used to write various data to the log format.

Constructor & Destructor Documentation

◆ Generic()

Generic ( const T &  iData)
inline

Member Function Documentation

◆ format()

void format ( const LogRecord record,
std::ostringstream &  ioStream 
)
inlinevirtual

Called by LogCustomizableFormatter whenever a new log entry is getting formatted.

Writes the formatted data to ioStream.

Parameters
recordThe log entry
ioStreamThe stream the formatted data gets written to.

Implements LogCustomizableFormatter::CustomFormatBase.

Member Data Documentation

◆ data

T data

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