Jpp  16.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
JLOGGER::JStreamLogger Class Reference

Message logging based on std::ostream. More...

#include <JStreamLogger.hh>

Inheritance diagram for JLOGGER::JStreamLogger:
JLOGGER::JLogger

Public Member Functions

 JStreamLogger (std::ostream &__out)
 Constructor. More...
 
virtual void typeout (const std::string &tag, const std::string &message) override
 Report message. More...
 
JSYNCHRONIZATION::JMutexmutex ()
 Provides internal lock object. More...
 

Protected Attributes

std::ostream & out
 

Detailed Description

Message logging based on std::ostream.

This class implements the JLogger interface.

Definition at line 22 of file JStreamLogger.hh.

Constructor & Destructor Documentation

JLOGGER::JStreamLogger::JStreamLogger ( std::ostream &  __out)
inline

Constructor.

Parameters
__outoutput stream

Definition at line 31 of file JStreamLogger.hh.

31  :
32  out(__out)
33  {}

Member Function Documentation

virtual void JLOGGER::JStreamLogger::typeout ( const std::string &  tag,
const std::string &  message 
)
inlineoverridevirtual

Report message.

Parameters
tagtag
messagemessage

Implements JLOGGER::JLogger.

Definition at line 42 of file JStreamLogger.hh.

44  {
45  out << tag << ' ' << message << std::endl;
46  }
JSYNCHRONIZATION::JMutex& JLOGGER::JLogger::mutex ( )
inlineinherited

Provides internal lock object.

Returns
reference to the internal mutex object.

Definition at line 44 of file JLogger.hh.

45  {
46  return m_mutex;
47  }
JSYNCHRONIZATION::JMutex m_mutex
Definition: JLogger.hh:51

Member Data Documentation

std::ostream& JLOGGER::JStreamLogger::out
protected

Definition at line 49 of file JStreamLogger.hh.


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