API Guides > ConceptRT 3.x
BaseLogStream Class Reference

base stream for logger. More...

Detailed Description

base stream for logger.

+ Inheritance diagram for BaseLogStream:

Public Member Methods

bool EndOfStream () const
 Query if end of stream reached. More...
 
Char8 ReadChar ()
 Reads a character. More...
 
void WriteChar (Char8 c)
 Writes a character. More...
 
void Flush ()
 Flushes this object. More...
 
Int32 GetPosition () const
 Gets the position. More...
 
- Public Member Methods inherited from Stream
virtual ~Stream ()
 Destructor. More...
 
Int32 CopyFrom (Stream &stream, Int32 count)
 Copies from. More...
 
Int32 CopyFrom (Stream &stream)
 Copies from described by stream. More...
 

Protected Member Functions

 BaseLogStream (BaseCircularBuffer< Char8 > &buffer)
 Constructor. More...
 

Constructor & Destructor Documentation

BaseLogStream ( BaseCircularBuffer< Char8 > &  buffer)
protected

Constructor.

Parameters
bufferCircularBuffer for the stream.

Methods Documentation

bool EndOfStream ( ) const
virtual

Query if end of stream reached.

Returns
true if end of stream reached, false if not.

Implements Stream.

void Flush ( )
virtual

Flushes this object.

Implements Stream.

Int32 GetPosition ( ) const
virtual

Gets the position.

Returns
The position.
RT Exceptions:
RT_ERROR_SPECIALIZATION_NOT_SUPPORTED

Implements Stream.

Char8 ReadChar ( )
virtual

Reads a character.

Returns
The character.

Implements Stream.

void WriteChar ( Char8  c)
virtual

Writes a character.

Parameters
cThe character.

Implements Stream.