humoto
Public Member Functions | Public Attributes | List of all members
humoto::LogMessage< t_Data > Class Template Reference

Detailed Description

template<typename t_Data>
class humoto::LogMessage< t_Data >

Standard (with a name) log message.

Template Parameters
t_Datamessage data type

Definition at line 469 of file logger.h.

#include <logger.h>

Inheritance diagram for humoto::LogMessage< t_Data >:
Inheritance graph

Public Member Functions

 LogMessage (const LogEntryName &entry_name, const t_Data &data)
 Construct message. More...
 
 ~LogMessage ()
 Default destructor. More...
 
virtual void write (std::ostream *out)
 Write message to a stream. This method must be implemented in derived classes. More...
 

Public Attributes

t_Data data_
 
LogEntryName entry_name_
 

Constructor & Destructor Documentation

◆ LogMessage()

template<typename t_Data >
humoto::LogMessage< t_Data >::LogMessage ( const LogEntryName entry_name,
const t_Data &  data 
)
inline

Construct message.

Parameters
[in]entry_name
[in]data

Definition at line 483 of file logger.h.

◆ ~LogMessage()

template<typename t_Data >
humoto::LogMessage< t_Data >::~LogMessage ( )
inline

Default destructor.

Definition at line 492 of file logger.h.

Member Function Documentation

◆ write()

template<typename t_Data >
virtual void humoto::LogMessage< t_Data >::write ( std::ostream *  out)
inlinevirtual

Write message to a stream. This method must be implemented in derived classes.

Parameters
[in]outoutput stream

Implements humoto::LogMessageBase.

Definition at line 496 of file logger.h.

Member Data Documentation

◆ data_

template<typename t_Data >
t_Data humoto::LogMessage< t_Data >::data_

Definition at line 473 of file logger.h.

◆ entry_name_

template<typename t_Data >
LogEntryName humoto::LogMessage< t_Data >::entry_name_

Definition at line 472 of file logger.h.


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