bux API Reference 1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
bux::I_ReenterableLog Struct Referenceabstract

Thread-unsafe implementation is preferred for performance. More...

#include <SyncLog.h>

Inheritance diagram for bux::I_ReenterableLog:

Public Member Functions

virtual ~I_ReenterableLog ()=default
 Pointer deletion is hereby granted.
 
virtual std::ostream * useLog ()=0
 Return non-null pointer if possible.
 
virtual std::ostream * useLog (E_LogLevel ll)=0
 Return non-null pointer if logging is permitted to log level ll.
 
virtual void unuseLog (bool flush)=0
 If the previous call to lockLog() returned null, the behavior is undefined.
 

Detailed Description

Thread-unsafe implementation is preferred for performance.

Definition at line 34 of file SyncLog.h.

Constructor & Destructor Documentation

◆ ~I_ReenterableLog()

virtual bux::I_ReenterableLog::~I_ReenterableLog ( )
virtualdefault

Pointer deletion is hereby granted.

Member Function Documentation

◆ unuseLog()

virtual void bux::I_ReenterableLog::unuseLog ( bool flush)
pure virtual

If the previous call to lockLog() returned null, the behavior is undefined.

Implemented in bux::C_ReenterableLogger< C_SinkRefHolder >, and bux::C_ReenterableLogger< typename C_AutoSinkHolderT< C_LogImpl >::type >.

Referenced by bux::C_SyncLogger::unlockLog().

Here is the caller graph for this function:

◆ useLog() [1/2]

virtual std::ostream * bux::I_ReenterableLog::useLog ( )
pure virtual

Return non-null pointer if possible.

Implemented in bux::C_ReenterableLogger< C_SinkRefHolder >, and bux::C_ReenterableLogger< typename C_AutoSinkHolderT< C_LogImpl >::type >.

Referenced by bux::C_SyncLogger::lockLog(), and bux::C_SyncLogger::lockLog().

Here is the caller graph for this function:

◆ useLog() [2/2]

virtual std::ostream * bux::I_ReenterableLog::useLog ( E_LogLevel ll)
pure virtual

Return non-null pointer if logging is permitted to log level ll.

Implemented in bux::C_ReenterableLogger< C_SinkRefHolder >, and bux::C_ReenterableLogger< typename C_AutoSinkHolderT< C_LogImpl >::type >.


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