Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JLOGGER::JDebugStream Struct Reference

Level specific message streamers. More...

#include <JMessageStream.hh>

Inheritance diagram for JLOGGER::JDebugStream:
JLOGGER::JMessageStream

Public Types

typedef std::ostream &(*) io_manip(std::ostream &)
 Type definition of I/O operator.
 

Public Member Functions

 JDebugStream (JMessageLogger &logger)
 
template<class T >
JMessageStreamoperator<< (const T &value)
 Appends value to internal buffer.
 
JMessageStreamoperator<< (io_manip manip)
 Append I/O manipulator.
 

Protected Attributes

JMessageLoggerlogger
 
void(JMessageLogger::* typeout )(const std::string &)
 

Detailed Description

Level specific message streamers.

Definition at line 113 of file JMessageStream.hh.

Member Typedef Documentation

◆ io_manip

std::ostream &(*) JLOGGER::JMessageStream::io_manip(std::ostream &)
inherited

Type definition of I/O operator.

Definition at line 65 of file JMessageStream.hh.

Constructor & Destructor Documentation

◆ JDebugStream()

JLOGGER::JDebugStream::JDebugStream ( JMessageLogger & logger)
inline

Definition at line 113 of file JMessageStream.hh.

113: JMessageStream { JDebugStream (JMessageLogger& logger) : JMessageStream(logger, &JMessageLogger::debug) {} };
int debug
debug level
Definition JSirene.cc:72
JMessageStream(JMessageLogger &__logger, void(JMessageLogger::*__typeout)(const std::string &))
Constructor.
JDebugStream(JMessageLogger &logger)

Member Function Documentation

◆ operator<<() [1/2]

template<class T >
JMessageStream & JLOGGER::JMessageStream::operator<< ( const T & value)
inlineinherited

Appends value to internal buffer.

Parameters
valuevalue
Returns
this JMessageStream

Definition at line 54 of file JMessageStream.hh.

55 {
56 static_cast<std::ostringstream&>(*this) << value;
57
58 return *this;
59 }

◆ operator<<() [2/2]

JMessageStream & JLOGGER::JMessageStream::operator<< ( io_manip manip)
inlineinherited

Append I/O manipulator.

Parameters
manipI/O manipulator
Returns
this JMessageStream

Definition at line 74 of file JMessageStream.hh.

75 {
76 static_cast<std::ostringstream&>(*this) << manip;
77
78 return *this;
79 }

Member Data Documentation

◆ logger

JMessageLogger& JLOGGER::JMessageStream::logger
protectedinherited

Definition at line 105 of file JMessageStream.hh.

◆ typeout

void(JMessageLogger::* JLOGGER::JMessageStream::typeout) (const std::string &)
protectedinherited

Definition at line 106 of file JMessageStream.hh.


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