Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
LogStream Class Reference

#include <log.h>

+ Collaboration diagram for LogStream:

Public Member Functions

 LogStream ()=delete
 
 DISABLE_CLASS_COPY (LogStream)
 
 LogStream (LogTarget &target)
 
template<typename T >
StreamProxyoperator<< (T &&arg)
 
StreamProxyoperator<< (std::ostream &(*manip)(std::ostream &))
 
 operator bool ()
 
void internalFlush (std::string_view buf)
 
 operator std::ostream & ()
 

Private Attributes

LogTargetm_target
 
StringStreamBuffer< BUFFER_LENGTHm_buffer
 
DummyStreamBuffer m_dummy_buffer
 
std::ostream m_stream
 
std::ostream m_dummy_stream
 
StreamProxy m_proxy
 
StreamProxy m_dummy_proxy
 

Static Private Attributes

static const int BUFFER_LENGTH = 256
 

Constructor & Destructor Documentation

◆ LogStream() [1/2]

LogStream::LogStream ( )
delete

◆ LogStream() [2/2]

LogStream::LogStream ( LogTarget & target)
inline

Member Function Documentation

◆ DISABLE_CLASS_COPY()

LogStream::DISABLE_CLASS_COPY ( LogStream )

◆ internalFlush()

void LogStream::internalFlush ( std::string_view buf)
inline

References LogTarget::log(), and m_target.

+ Here is the call graph for this function:

◆ operator bool()

LogStream::operator bool ( )
inline

References LogTarget::hasOutput(), and m_target.

+ Here is the call graph for this function:

◆ operator std::ostream &()

LogStream::operator std::ostream & ( )
inline

References LogTarget::hasOutput(), m_dummy_stream, m_stream, and m_target.

+ Here is the call graph for this function:

◆ operator<<() [1/2]

StreamProxy & LogStream::operator<< ( std::ostream &(* manip )(std::ostream &))
inline

References LogTarget::hasOutput(), m_dummy_proxy, m_proxy, and m_target.

+ Here is the call graph for this function:

◆ operator<<() [2/2]

template<typename T >
StreamProxy & LogStream::operator<< ( T && arg)
inline

References LogTarget::hasOutput(), m_dummy_proxy, m_proxy, and m_target.

+ Here is the call graph for this function:

Member Data Documentation

◆ BUFFER_LENGTH

const int LogStream::BUFFER_LENGTH = 256
staticprivate

◆ m_buffer

StringStreamBuffer<BUFFER_LENGTH> LogStream::m_buffer
private

◆ m_dummy_buffer

DummyStreamBuffer LogStream::m_dummy_buffer
private

◆ m_dummy_proxy

StreamProxy LogStream::m_dummy_proxy
private

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

◆ m_dummy_stream

std::ostream LogStream::m_dummy_stream
private

Referenced by operator std::ostream &().

◆ m_proxy

StreamProxy LogStream::m_proxy
private

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

◆ m_stream

std::ostream LogStream::m_stream
private

Referenced by operator std::ostream &().

◆ m_target

LogTarget& LogStream::m_target
private

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