libdisplaydevice latest
C++ library to modify display devices.
display_device::LogWriter Class Reference

A helper class for accumulating output via the stream operator and then writing it out at once. More...

#include <src/common/include/display_device/logging.h>

Public Member Functions

 LogWriter (Logger::LogLevel log_level)
 Constructor scoped writer utility.
 
template<class T >
LogWriteroperator<< (T &&value)
 Stream value to the buffer.
 
virtual ~LogWriter ()
 Write out the accumulated output.
 

Detailed Description

A helper class for accumulating output via the stream operator and then writing it out at once.

Constructor & Destructor Documentation

◆ LogWriter()

display_device::LogWriter::LogWriter ( Logger::LogLevel log_level)
explicit

Constructor scoped writer utility.

Parameters
log_levelLevel to be used when writing out the output.

Member Function Documentation

◆ operator<<()

template<class T >
LogWriter & display_device::LogWriter::operator<< ( T && value)
inline

Stream value to the buffer.

Parameters
valueArbitrary value to be written to the buffer.
Returns
Reference to the writer utility for chaining the operators.

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