struct mrpt::system::COutputLoggerStreamWrapper

Overview

For use in MRPT_LOG_DEBUG_STREAM(), etc.

#include <mrpt/system/COutputLogger.h>

struct COutputLoggerStreamWrapper
{
    // construction

    COutputLoggerStreamWrapper(
        VerbosityLevel level,
        const COutputLogger& logger
        );

    COutputLoggerStreamWrapper(const COutputLoggerStreamWrapper&);
    COutputLoggerStreamWrapper(COutputLoggerStreamWrapper&&);

    // methods

    COutputLoggerStreamWrapper& operator = (const COutputLoggerStreamWrapper&);
    COutputLoggerStreamWrapper& operator = (COutputLoggerStreamWrapper&&);

    template <typename T>
    std::stringstream& operator << (const T& val);

    std::stringstream& operator << (const std::stringstream& val);
};