|
ldas-tools-al 2.6.7
|
Error reporting mechanism. More...
#include <ErrorLog.hh>

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 (std::ostream &Stream, bool OpenState) | |
| Constructor. | |
| ~ErrorLog () | |
| Destructor. | |
| ~ErrorLog () | |
| Destructor. | |
| bool | IsOpen () const |
| Check log's open state. | |
| bool | IsOpen (bool State) |
| Set log's open state. | |
| bool | IsOpen () const |
| Check log's open state. | |
| bool | IsOpen (bool State) |
| Set log's open state. | |
| void | MaskBitClear (state State) |
| void | MaskBitClear (state State) |
| void | MaskBitSet (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. | |
| 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 |
Error reporting mechanism.
| LDASTools::AL::ErrorLog::ErrorLog | ( | std::ostream & | Stream, |
| bool | OpenState ) |
Constructor.
| LDASTools::AL::ErrorLog::ErrorLog | ( | std::ostream & | Stream, |
| bool | OpenState ) |
Constructor.
| LDASTools::AL::ErrorLog::~ErrorLog | ( | ) |
Destructor.
| LDASTools::AL::ErrorLog::~ErrorLog | ( | ) |
Destructor.
|
inlinestatic |
|
static |
|
inlinestatic |
|
static |
|
inline |
Check log's open state.
| bool LDASTools::AL::ErrorLog::IsOpen | ( | ) | const |
Check log's open state.
|
inline |
Set log's open state.
| bool LDASTools::AL::ErrorLog::IsOpen | ( | bool | State | ) |
Set log's open state.
|
inline |
| void LDASTools::AL::ErrorLog::MaskBitClear | ( | state | State | ) |
|
inline |
| void LDASTools::AL::ErrorLog::MaskBitSet | ( | state | State | ) |
| void LDASTools::AL::ErrorLog::operator() | ( | state | State, |
| const char * | Filename, | ||
| const int | Line, | ||
| const std::string & | Message, | ||
| bool | EOL = true ) |
Write message to log.
| void LDASTools::AL::ErrorLog::operator() | ( | state | State, |
| const char * | Filename, | ||
| const int | Line, | ||
| const std::string & | Message, | ||
| bool | EOL = true ) |
Write message to log.
|
inline |
Resetting of the output stream to use.
| void LDASTools::AL::ErrorLog::operator() | ( | std::ostream & | Stream | ) |
Resetting of the output stream to use.
|
staticprivate |
|
private |
Open state of log.
|
private |
Lock to ensure syncronous output.
|
private |
|
private |
Stream associated with the log.