Accelerated Computation Engine
Public Member Functions | Static Public Member Functions | List of all members
ELog Class Reference

#include <elog.h>

Public Member Functions

ELogoperator<< (qint8 value)
 
ELogoperator<< (qint16 value)
 
ELogoperator<< (qint32 value)
 
ELogoperator<< (qint64 value)
 
ELogoperator<< (quint8 value)
 
ELogoperator<< (quint16 value)
 
ELogoperator<< (quint32 value)
 
ELogoperator<< (quint64 value)
 
ELogoperator<< (float value)
 
ELogoperator<< (double value)
 
ELogoperator<< (const QString &value)
 
 ~ELog ()
 

Static Public Member Functions

static bool isActive ()
 

Detailed Description

This is a temporary log object designed to make a single log message. This is thread safe. When an object of this class is destroyed it writes its log message to output. This is safe because the underlying message system will not throw any exceptions when doing this.

Constructor & Destructor Documentation

◆ ~ELog()

ELog::~ELog ( )

Writes the fully constructed message to the logging system of this application. Uses a mutex to safely write to the logging system inside any thread. If logging is not active this will do nothing. If logging is disabled then this reports the misuse of logging and does nothing else.

Member Function Documentation

◆ isActive()

bool ELog::isActive ( )
static

Tests if logging is active for this application, returning true if it is.

Returns
True if the logging system is active or false otherwise.

◆ operator<<() [1/11]

ELog & ELog::operator<< ( qint8  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [2/11]

ELog & ELog::operator<< ( qint16  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [3/11]

ELog & ELog::operator<< ( qint32  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [4/11]

ELog & ELog::operator<< ( qint64  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [5/11]

ELog & ELog::operator<< ( quint8  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [6/11]

ELog & ELog::operator<< ( quint16  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [7/11]

ELog & ELog::operator<< ( quint32  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [8/11]

ELog & ELog::operator<< ( quint64  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [9/11]

ELog & ELog::operator<< ( float  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [10/11]

ELog & ELog::operator<< ( double  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

◆ operator<<() [11/11]

ELog & ELog::operator<< ( const QString &  value)

Adds the given value to this log message.

Parameters
valueThe value that is written out.
Returns
Reference to this logger.

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