OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::util::log::Logger::StreamProxy Class Reference

#include <osvr/Util/Logger.h>

Public Member Functions

 StreamProxy (Logger &logger, LogLevel level)
 
 StreamProxy (Logger &logger, LogLevel level, const std::string &msg)
 
 ~StreamProxy ()
 
 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.

Definition at line 127 of file Logger.h.

Constructor & Destructor Documentation

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

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

Definition at line 142 of file Logger.h.


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