CppNCorr
C++ ncorr Digital Image Correlation engine
Loading...
Searching...
No Matches
ncorr::log::Stream Class Reference

RAII stream builder; flushes its accumulated text to the logger when it is destroyed at the end of the full expression. More...

#include <log.h>

Public Member Functions

 Stream (Level level, const char *file, int line)
 
 ~Stream ()
 
 Stream (const Stream &)=delete
 
Streamoperator= (const Stream &)=delete
 
template<typename T >
Streamoperator<< (const T &v)
 
Streamoperator<< (std::ostream &(*manip)(std::ostream &))
 Support stream manipulators such as std::endl / std::setprecision.
 

Detailed Description

RAII stream builder; flushes its accumulated text to the logger when it is destroyed at the end of the full expression.

Definition at line 115 of file log.h.

Constructor & Destructor Documentation

◆ Stream() [1/2]

ncorr::log::Stream::Stream ( Level  level,
const char *  file,
int  line 
)
inline

Definition at line 117 of file log.h.

◆ ~Stream()

ncorr::log::Stream::~Stream ( )
inline

Definition at line 118 of file log.h.

◆ Stream() [2/2]

ncorr::log::Stream::Stream ( const Stream )
delete

Member Function Documentation

◆ operator<<() [1/2]

template<typename T >
Stream & ncorr::log::Stream::operator<< ( const T &  v)
inline

Definition at line 124 of file log.h.

◆ operator<<() [2/2]

Stream & ncorr::log::Stream::operator<< ( std::ostream &(*)(std::ostream &)  manip)
inline

Support stream manipulators such as std::endl / std::setprecision.

Definition at line 129 of file log.h.

◆ operator=()

Stream & ncorr::log::Stream::operator= ( const Stream )
delete

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