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_SyncLog Class Referenceabstract

</// Thread safety is expected More...

#include <SyncLog.h>

Inheritance diagram for bux::I_SyncLog:

Public Member Functions

virtual std::ostream * lockLog ()=0
 Return non-null pointer if possible.
 
virtual std::ostream * lockLog (E_LogLevel ll)=0
 Return non-null pointer if logging is permitted for the given log level ll.
 
virtual void unlockLog (bool flush=true)=0
 If the previous call to lockLog() returned null, the behavior is undefined.
 

Public Attributes

const std::chrono::time_zone *const tz
 

Protected Member Functions

 I_SyncLog (const std::chrono::time_zone *tz_)
 
 ~I_SyncLog ()=default
 Pointer deletion is not expected.
 

Detailed Description

</// Thread safety is expected

Definition at line 14 of file SyncLog.h.

Constructor & Destructor Documentation

◆ I_SyncLog()

bux::I_SyncLog::I_SyncLog ( const std::chrono::time_zone * tz_)
inlineprotected

Definition at line 29 of file SyncLog.h.

◆ ~I_SyncLog()

bux::I_SyncLog::~I_SyncLog ( )
protecteddefault

Pointer deletion is not expected.

Member Function Documentation

◆ lockLog() [1/2]

virtual std::ostream * bux::I_SyncLog::lockLog ( )
pure virtual

Return non-null pointer if possible.

Implemented in bux::C_ParaLog, and bux::C_SyncLogger.

◆ lockLog() [2/2]

virtual std::ostream * bux::I_SyncLog::lockLog ( E_LogLevel ll)
pure virtual

Return non-null pointer if logging is permitted for the given log level ll.

Implemented in bux::C_ParaLog, and bux::C_SyncLogger.

◆ unlockLog()

virtual void bux::I_SyncLog::unlockLog ( bool flush = true)
pure virtual

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

Implemented in bux::C_ParaLog, and bux::C_SyncLogger.

Referenced by bux::C_UseLog::~C_UseLog().

Here is the caller graph for this function:

Member Data Documentation

◆ tz

const std::chrono::time_zone* const bux::I_SyncLog::tz

Definition at line 25 of file SyncLog.h.

Referenced by bux::C_UseLog::timezone().


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