MRPT  2.0.1
List of all members | Public Member Functions | Private Attributes
mrpt::system::COutputLoggerStreamWrapper Struct Reference

Detailed Description

For use in MRPT_LOG_DEBUG_STREAM(), etc.

Definition at line 318 of file system/COutputLogger.h.

#include <mrpt/system/COutputLogger.h>

Public Member Functions

 COutputLoggerStreamWrapper (VerbosityLevel level, const COutputLogger &logger)
 
 ~COutputLoggerStreamWrapper ()
 
template<typename T >
std::stringstream & operator<< (const T &val)
 
std::stringstream & operator<< (const std::stringstream &val)
 

Private Attributes

std::stringstream m_str
 
VerbosityLevel m_level
 
const COutputLoggerm_logger
 

Constructor & Destructor Documentation

◆ COutputLoggerStreamWrapper()

mrpt::system::COutputLoggerStreamWrapper::COutputLoggerStreamWrapper ( VerbosityLevel  level,
const COutputLogger logger 
)
inline

Definition at line 320 of file system/COutputLogger.h.

◆ ~COutputLoggerStreamWrapper()

mrpt::system::COutputLoggerStreamWrapper::~COutputLoggerStreamWrapper ( )
inline

Definition at line 325 of file system/COutputLogger.h.

References mrpt::system::COutputLogger::isLoggingLevelVisible(), mrpt::system::COutputLogger::logStr(), m_level, m_logger, and m_str.

Here is the call graph for this function:

Member Function Documentation

◆ operator<<() [1/2]

template<typename T >
std::stringstream& mrpt::system::COutputLoggerStreamWrapper::operator<< ( const T &  val)
inline

Definition at line 332 of file system/COutputLogger.h.

References m_str, and val.

◆ operator<<() [2/2]

std::stringstream& mrpt::system::COutputLoggerStreamWrapper::operator<< ( const std::stringstream &  val)
inline

Definition at line 338 of file system/COutputLogger.h.

References m_str, and val.

Member Data Documentation

◆ m_level

VerbosityLevel mrpt::system::COutputLoggerStreamWrapper::m_level
private

Definition at line 346 of file system/COutputLogger.h.

Referenced by ~COutputLoggerStreamWrapper().

◆ m_logger

const COutputLogger& mrpt::system::COutputLoggerStreamWrapper::m_logger
private

Definition at line 347 of file system/COutputLogger.h.

Referenced by ~COutputLoggerStreamWrapper().

◆ m_str

std::stringstream mrpt::system::COutputLoggerStreamWrapper::m_str
private

Definition at line 345 of file system/COutputLogger.h.

Referenced by operator<<(), and ~COutputLoggerStreamWrapper().




Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020