libfly  6.2.2
C++20 utility library for Linux, macOS, and Windows
fly::logger::detail::StylerProxy Class Reference

#include <styler_proxy.hpp>

Inheritance diagram for fly::logger::detail::StylerProxy:

Public Member Functions

 StylerProxy (std::ostream &stream) noexcept
 
virtual ~StylerProxy ()=default
 

Protected Attributes

std::ostream & m_stream
 
const bool m_stream_is_stdout
 
const bool m_stream_is_stderr
 

Friends

template<typename T >
std::ostream & operator<< (const StylerProxy &proxy, const T &value)
 

Detailed Description

IO manipulator proxy responsible for performing the underlying stream manipulations.

This class essentially exists as a common base class for OS dependent implementations to inherit.

Author
Timothy Flynn (trfly.nosp@m.nn89.nosp@m.@pm.m.nosp@m.e)
Version
July 11, 2020

Constructor & Destructor Documentation

◆ StylerProxy()

fly::logger::detail::StylerProxy::StylerProxy ( std::ostream &  stream)
explicitnoexcept

Constructor. Concrete implementations should use their constructor to manipulate the provided stream.

Parameters
streamThe stream to manipulate.

◆ ~StylerProxy()

virtual fly::logger::detail::StylerProxy::~StylerProxy ( )
virtualdefault

Destructor. Concrete implementations should use their destructor to reset the stream to its original state.

Friends And Related Function Documentation

◆ operator<<

template<typename T >
std::ostream& operator<< ( const StylerProxy proxy,
const T &  value 
)
friend

Proxy streaming implementation to stream any value onto a proxy's stored stream.

Parameters
proxyThe StylerProxy instance holding the stream.
valueThe value to stream.
Returns
A reference to the stored stream.

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