#include <mcllib/MCMsg.h>
Inheritance diagram for MCMsg:
Public Types | |
typedef unsigned long | msgcode_t |
message codes for message number | |
typedef unsigned long | msglevel_t |
Public Member Functions | |
msgcode_t | getCode () const |
Get the msgCode of the message. | |
const MCString & | getCodeString () const |
Get the msgCode as a text string. | |
msglevel_t | getLevel () const |
Get the level number of the message. | |
const MCString & | getLevelString () const |
Get the output level of this message as a string. | |
const MCString & | getString () const |
Get the original message text provided at construction time. | |
virtual MCString | getText () const |
Get the entire msg as an MCString. | |
MCMsg (const MCString &msg, msglevel_t msgLevel=MSGLVL_ALL, msgcode_t msgCode=MSGCODE_NONE) | |
Construct a message. | |
virtual | ~MCMsg () |
Virtual destructor. | |
Static Public Member Functions | |
const MCString & | getCodeString (msgcode_t code) |
Get a specific msgCode as a text string. | |
const MCString & | getLevelString (msglevel_t lvl) |
Get a specific output level as a string. | |
Static Public Attributes | |
msgcode_t | MSGCODE_MAX |
Maximum system supplied message number. | |
msgcode_t | MSGCODE_MIN |
Minimum system supplied message number. | |
msgcode_t | MSGCODE_NONE |
no message code - the default | |
msglevel_t | MSGLVL_ALL |
A message which is always produced (copyright, banner etc.). | |
msglevel_t | MSGLVL_DEBUG |
Debug message. | |
msglevel_t | MSGLVL_DEBUG_L1 |
Debug message. | |
msglevel_t | MSGLVL_DEBUG_L2 |
Low level debug message. | |
msglevel_t | MSGLVL_DEBUG_L3 |
Low level debug message. | |
msglevel_t | MSGLVL_DEBUG_L4 |
Low level debug message. | |
msglevel_t | MSGLVL_ERROR |
Indicates an error message. | |
msglevel_t | MSGLVL_FATAL |
Indicates a fatal message. | |
msglevel_t | MSGLVL_INFO |
Indicates an informational message. | |
msglevel_t | MSGLVL_WARN |
msglevel_t | MSGLVL_WARNING |
Indicates a warning (system operational). | |
Protected Attributes | |
MCString | m_msg |
msgcode_t | m_msgCode |
msglevel_t | m_msgLevel |
The string is descriptive text. The code number identifies the descriptive text in a message catalog. The level indicates the priority of the message. This allows different priority messages to be directed, routed and filtered. The library logging functions use the level to determine if the message should be directed to the log file or discarded.
|
Construct a message. A message denotes an textual message contained in a source file.
|
|
Get the msgCode of the message.
|
|
Get a specific msgCode as a text string.
|
|
Get the msgCode as a text string.
|
|
Get the level number of the message.
|
|
Get a specific output level as a string.
|
|
Get the output level of this message as a string.
|
|
Get the original message text provided at construction time.
|
|
Get the entire msg as an MCString.
Reimplemented in MCSrcMsg. |
|
Indicates a fatal message. Fatal messages should be reserved for catastrophic problems which will prevent the application from continuing. i.e. they indicate unrecoverable situations after which the application will terminate |