EHS
|
#include <Log.h>
Public Member Functions | |
Log () | |
Default members initialization. More... | |
Log (LogType type, const std::initializer_list< Str_8 > &tags, UInt_64 code, Str_8 msg) | |
Log (LogType type, Array< Str_8 > tags, UInt_64 code, Str_8 msg) | |
Log (Log &&log) noexcept | |
Log (const Log &log) | |
Log & | operator= (Log &&log) noexcept |
Log & | operator= (const Log &log) |
LogType | GetType () const |
bool | HasTags (const std::initializer_list< Str_8 > &tags) const |
bool | HasTags (const Array< Str_8 > &tags) const |
bool | HasTag (const Str_8 &tag) const |
const Array< Str_8 > & | GetTags () const |
UInt_64 | GetCode () const |
Str_8 | GetMsg () const |
Str_8 | ToStr () const |
bool | IsValid () const |
Static Public Member Functions | |
static void | SetRaisedCallback (LogRaisedCb newCb) |
static void | SetOutputCallback (LogOutputCb newCb) |
static void | OnExit () |
static void | Raise (Log log) |
static Log | GetLastLog () |
Retrieves the last log raised. More... | |
static void | EnableImmediateMode (bool enable) |
A helper class for holding error information and handling them.
T | The character data type to use. |
N | The number data type to use. |
ehs::Log::Log | ( | ) |
Default members initialization.
ehs::Log::Log | ( | LogType | type, |
const std::initializer_list< Str_8 > & | tags, | ||
UInt_64 | code, | ||
Str_8 | msg | ||
) |
Initializes members with the given information.
[in] | tags | The tags to associate this log with. |
[in] | code | The unique code to use. |
[in] | msg | Detailed information about what happened. |
Initializes members with the given information.
[in] | tags | The tags to associate this log with. |
[in] | code | The unique code to use. |
[in] | msg | Detailed information about what happened. |
|
noexcept |
ehs::Log::Log | ( | const Log & | log | ) |
Copies all members from the given log.
[in] | log | The log to copy from. |
|
static |
UInt_64 ehs::Log::GetCode | ( | ) | const |
|
static |
Retrieves the last log raised.
Str_8 ehs::Log::GetMsg | ( | ) | const |
Retrieves the detailed error message string.
LogType ehs::Log::GetType | ( | ) | const |
bool ehs::Log::HasTag | ( | const Str_8 & | tag | ) | const |
Checks whether or not this log has the given tag.
[in] | tag | The tag to look for. |
Checks whether or not this log has the given tags.
[in] | tags | The tags to look for. |
bool ehs::Log::HasTags | ( | const std::initializer_list< Str_8 > & | tags | ) | const |
Checks whether or not this log has the given tags.
[in] | tags | The tags to look for. |
bool ehs::Log::IsValid | ( | ) | const |
Retrieves whether or not this is a valid object.
|
static |
Copies all members from the given log.
[in] | log | The log to copy from. |
|
static |
|
static |
|
static |
Str_8 ehs::Log::ToStr | ( | ) | const |