Loading...
Searching...
No Matches
by::stream Class Referenceabstract

Base class for all logging output streams. More...

#include <stream.hpp>

Inheritance diagram for by::stream:
by::consoleStream by::fileLogStream by::logger

Public Member Functions

 stream (nbool isEnable=true)
 
virtual nbool logBypass (const nchar *message)
 Log message directly without formatting.
 
nbool logBypass (const std::string &message)
 
nbool isNull () const
 Checks if this stream is a null object.
 
virtual nbool isEnable () const
 
virtual void setEnable (nbool isEnable)
 
virtual const std::string & getName () const =0
 
virtual nbool init ()
 Initializes the stream, transitioning its state from RELEASED to INITIALIZED.
 
virtual nbool isInit () const
 
virtual nbool rel ()
 Releases the stream's resources, transitioning its state from INITIALIZED to RELEASED.
 

Detailed Description

Base class for all logging output streams.

Provides the fundamental interface for logging destinations such as console output, file output, or network logging.

Member Function Documentation

◆ init()

virtual nbool by::stream::init ( )
virtual

Initializes the stream, transitioning its state from RELEASED to INITIALIZED.

Returns
true on successful initialization, false otherwise (e.g., already initialized).

◆ isNull()

nbool by::stream::isNull ( ) const

Checks if this stream is a null object.

Returns
true if the stream is a null object, false otherwise.

◆ logBypass()

virtual nbool by::stream::logBypass ( const nchar * message)
virtual

Log message directly without formatting.

Returns
true on success, false on error

Reimplemented in by::logger, by::fileLogStream, and by::consoleStream.

◆ rel()

virtual nbool by::stream::rel ( )
virtual

Releases the stream's resources, transitioning its state from INITIALIZED to RELEASED.

Returns
true on successful release, false otherwise.

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