ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
LDASTools::AL::ErrorLog Class Reference

Error reporting mechanism. More...

#include <ErrorLog.hh>

Collaboration diagram for LDASTools::AL::ErrorLog:

Public Types

enum  state {
  ASSERT_FAILURE , FATAL , DEBUG , WARNING ,
  INFO , ASSERT_FAILURE , FATAL , DEBUG ,
  WARNING , INFO
}
 
enum  state {
  ASSERT_FAILURE , FATAL , DEBUG , WARNING ,
  INFO , ASSERT_FAILURE , FATAL , DEBUG ,
  WARNING , INFO
}
 

Public Member Functions

 ErrorLog (std::ostream &Stream, bool OpenState)
 Constructor.
 
 ~ErrorLog ()
 Destructor.
 
bool IsOpen () const
 Check log's open state.
 
bool IsOpen (bool State)
 Set log's open state.
 
void MaskBitClear (state State)
 
void MaskBitSet (state State)
 
void operator() (state State, const char *Filename, const int Line, const std::string &Message, bool EOL=true)
 Write message to log.
 
void operator() (std::ostream &Stream)
 Resetting of the output stream to use.
 
 ErrorLog (std::ostream &Stream, bool OpenState)
 Constructor.
 
 ~ErrorLog ()
 Destructor.
 
bool IsOpen () const
 Check log's open state.
 
bool IsOpen (bool State)
 Set log's open state.
 
void MaskBitClear (state State)
 
void MaskBitSet (state State)
 
void operator() (state State, const char *Filename, const int Line, const std::string &Message, bool EOL=true)
 Write message to log.
 
void operator() (std::ostream &Stream)
 Resetting of the output stream to use.
 

Static Public Member Functions

static bool AbortOnAssertFailure ()
 
static void AbortOnAssertFailure (bool Value)
 
static bool AbortOnAssertFailure ()
 
static void AbortOnAssertFailure (bool Value)
 

Private Attributes

std::ostream * m_stream
 Stream associated with the log.
 
MutexLock::baton_type m_lock
 Lock to ensure syncronous output.
 
bool m_is_open
 Open state of log.
 
INT_4U m_mask
 

Static Private Attributes

static bool m_abort_on_assert_failure = false
 

Detailed Description

Error reporting mechanism.

Member Enumeration Documentation

◆ state [1/2]

Enumerator
ASSERT_FAILURE 
FATAL 

Message represents a fatal condition.

DEBUG 

Message is for debbugging purposes.

WARNING 

Message represents a non-fatal condition.

INFO 

Message supplies additional information.

ASSERT_FAILURE 
FATAL 

Message represents a fatal condition.

DEBUG 

Message is for debbugging purposes.

WARNING 

Message represents a non-fatal condition.

INFO 

Message supplies additional information.

◆ state [2/2]

Enumerator
ASSERT_FAILURE 
FATAL 

Message represents a fatal condition.

DEBUG 

Message is for debbugging purposes.

WARNING 

Message represents a non-fatal condition.

INFO 

Message supplies additional information.

ASSERT_FAILURE 
FATAL 

Message represents a fatal condition.

DEBUG 

Message is for debbugging purposes.

WARNING 

Message represents a non-fatal condition.

INFO 

Message supplies additional information.

Constructor & Destructor Documentation

◆ ErrorLog() [1/2]

LDASTools::AL::ErrorLog::ErrorLog ( std::ostream & Stream,
bool OpenState )

Constructor.

◆ ~ErrorLog() [1/2]

LDASTools::AL::ErrorLog::~ErrorLog ( )

Destructor.

◆ ErrorLog() [2/2]

LDASTools::AL::ErrorLog::ErrorLog ( std::ostream & Stream,
bool OpenState )

Constructor.

◆ ~ErrorLog() [2/2]

LDASTools::AL::ErrorLog::~ErrorLog ( )

Destructor.

Member Function Documentation

◆ AbortOnAssertFailure() [1/4]

bool LDASTools::AL::ErrorLog::AbortOnAssertFailure ( )
inlinestatic

◆ AbortOnAssertFailure() [2/4]

static bool LDASTools::AL::ErrorLog::AbortOnAssertFailure ( )
static

◆ AbortOnAssertFailure() [3/4]

void LDASTools::AL::ErrorLog::AbortOnAssertFailure ( bool Value)
inlinestatic

◆ AbortOnAssertFailure() [4/4]

static void LDASTools::AL::ErrorLog::AbortOnAssertFailure ( bool Value)
static

◆ IsOpen() [1/4]

bool LDASTools::AL::ErrorLog::IsOpen ( ) const
inline

Check log's open state.

◆ IsOpen() [2/4]

bool LDASTools::AL::ErrorLog::IsOpen ( ) const

Check log's open state.

◆ IsOpen() [3/4]

bool LDASTools::AL::ErrorLog::IsOpen ( bool State)
inline

Set log's open state.

◆ IsOpen() [4/4]

bool LDASTools::AL::ErrorLog::IsOpen ( bool State)

Set log's open state.

◆ MaskBitClear() [1/2]

void LDASTools::AL::ErrorLog::MaskBitClear ( state State)
inline

◆ MaskBitClear() [2/2]

void LDASTools::AL::ErrorLog::MaskBitClear ( state State)

◆ MaskBitSet() [1/2]

void LDASTools::AL::ErrorLog::MaskBitSet ( state State)
inline

◆ MaskBitSet() [2/2]

void LDASTools::AL::ErrorLog::MaskBitSet ( state State)

◆ operator()() [1/4]

void LDASTools::AL::ErrorLog::operator() ( state State,
const char * Filename,
const int Line,
const std::string & Message,
bool EOL = true )

Write message to log.

◆ operator()() [2/4]

void LDASTools::AL::ErrorLog::operator() ( state State,
const char * Filename,
const int Line,
const std::string & Message,
bool EOL = true )

Write message to log.

◆ operator()() [3/4]

void LDASTools::AL::ErrorLog::operator() ( std::ostream & Stream)
inline

Resetting of the output stream to use.

◆ operator()() [4/4]

void LDASTools::AL::ErrorLog::operator() ( std::ostream & Stream)

Resetting of the output stream to use.

Member Data Documentation

◆ m_abort_on_assert_failure

static bool LDASTools::AL::ErrorLog::m_abort_on_assert_failure = false
staticprivate

◆ m_is_open

bool LDASTools::AL::ErrorLog::m_is_open
private

Open state of log.

◆ m_lock

MutexLock::baton_type LDASTools::AL::ErrorLog::m_lock
private

Lock to ensure syncronous output.

◆ m_mask

INT_4U LDASTools::AL::ErrorLog::m_mask
private

◆ m_stream

std::ostream * LDASTools::AL::ErrorLog::m_stream
private

Stream associated with the log.


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