OSVR-Core
Public Member Functions | List of all members
osvr::util::log::Logger::StreamProxy Class Reference

An object returned the logging functions (including operator<<), serves to accumulate streamed output in a single ostringstream then write it to the logger at the end of the expression's lifetime. More...

#include <Logger.h>

Public Member Functions

 StreamProxy (Logger &logger, LogLevel level)
 
 StreamProxy (Logger &logger, LogLevel level, const std::string &msg)
 
 ~StreamProxy ()
 destructor appends the finished stringstream at the end of the expression. More...
 
 StreamProxy (StreamProxy &&other)
 move construction
 
 StreamProxy (StreamProxy const &)=delete
 
StreamProxyoperator= (StreamProxy const &)=delete
 
 operator std::ostream & ()
 
template<typename T >
std::ostream & operator<< (T &&what)
 

Detailed Description

An object returned the logging functions (including operator<<), serves to accumulate streamed output in a single ostringstream then write it to the logger at the end of the expression's lifetime.

Constructor & Destructor Documentation

§ ~StreamProxy()

osvr::util::log::Logger::StreamProxy::~StreamProxy ( )
inline

destructor appends the finished stringstream at the end of the expression.


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