CPPxDIC
C++ Digital Image Correlation library for fingertip 3D reconstruction
Loading...
Searching...
No Matches
cppxdic::log::Stream Class Reference

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

#include <logging.h>

Public Member Functions

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

Detailed Description

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

Definition at line 123 of file logging.h.

Constructor & Destructor Documentation

◆ Stream() [1/2]

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

Definition at line 125 of file logging.h.

◆ ~Stream()

cppxdic::log::Stream::~Stream ( )
inline

Definition at line 126 of file logging.h.

◆ Stream() [2/2]

cppxdic::log::Stream::Stream ( const Stream &  )
delete

Member Function Documentation

◆ operator<<() [1/2]

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

Definition at line 132 of file logging.h.

◆ operator<<() [2/2]

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

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

Definition at line 137 of file logging.h.

◆ operator=()

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

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