Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
Blam::Logger::Queue Namespace Reference

Functions for the logger's message queue. More...

Functions

BLAM void Initialize ()
 Initializes the logger queue. More...
 
BLAM void Shutdown ()
 Flushes the queue and may later be used to perform other shutdown tasks. More...
 
BLAM void Flush ()
 Flushes the queue, causing all messages to be written to all places they are configured to do so. More...
 
BLAM void AddMessage (BlamLogMessage message)
 Adds a message to the queue. More...
 
BLAM std::vector< BlamLogMessage > * GetQueue ()
 Retrieves the current message queue. More...
 
BLAM void FlushThread ()
 
BLAM void StartFlushThread ()
 
BLAM void StopFlushThread ()
 

Detailed Description

Functions for the logger's message queue.

The queue is primarily used to ensure early startup messages are able to be recorded without either message loss or causing errors due to very early pre-init messages.

Todo:
Have the duplicate checks expire after x amount of ticks

Function Documentation

◆ AddMessage()

void Blam::Logger::Queue::AddMessage ( BlamLogMessage  message)

Adds a message to the queue.

Parameters
message- The message to add to the queue.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Flush()

void Blam::Logger::Queue::Flush ( )

Flushes the queue, causing all messages to be written to all places they are configured to do so.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FlushThread()

void Blam::Logger::Queue::FlushThread ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetQueue()

std::vector< BlamLogMessage > * Blam::Logger::Queue::GetQueue ( )

Retrieves the current message queue.

Returns
A pointer to the message queue.
+ Here is the caller graph for this function:

◆ Initialize()

void Blam::Logger::Queue::Initialize ( )

Initializes the logger queue.

This function simply loads a few configuration settings into local variables, in order to ensure that the queue can operate correctly in the event of a configuration change.

+ Here is the caller graph for this function:

◆ Shutdown()

void Blam::Logger::Queue::Shutdown ( )

Flushes the queue and may later be used to perform other shutdown tasks.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StartFlushThread()

void Blam::Logger::Queue::StartFlushThread ( )
+ Here is the caller graph for this function:

◆ StopFlushThread()

void Blam::Logger::Queue::StopFlushThread ( )
+ Here is the caller graph for this function: