MSG Namespace Reference
[Base]

Defines constants for Message utility. More...


Enumerations

enum  Level {
  DEBUG = 0, INFO, NORMAL, WARNING,
  ERROR, MSG_TYPE_MAX
}
 Defines message level. More...

Variables

const std::string ColorPrefix [MSG_TYPE_MAX]
 Color coding of message.
const std::string StringPrefix [MSG_TYPE_MAX]
 Prefix of message.


Detailed Description

Defines constants for Message utility.

Enumeration Type Documentation

enum MSG::Level

Defines message level.

Enumerator:
DEBUG  Message level ... useful to debug a crash.
INFO  Debug info but not the lowest level.
NORMAL  Normal stdout.
WARNING  notify a user in the standard operation mode for an important finding.
ERROR  notify a user when something is clearly wrong
MSG_TYPE_MAX 

Definition at line 24 of file constants.hh.

00024             {
00025     DEBUG=0,      
00026     INFO,         
00027     NORMAL,       
00028     WARNING,      
00029     ERROR,        
00030     MSG_TYPE_MAX
00031   };


Variable Documentation

const std::string MSG::ColorPrefix[MSG_TYPE_MAX]

Initial value:

    {
      "\033[94m", 
      "\033[92m", 
      "\033[95m", 
      "\033[93m", 
      "\033[91m"  
    }
Color coding of message.

Definition at line 33 of file constants.hh.

Referenced by Message::send().

const std::string MSG::StringPrefix[MSG_TYPE_MAX]

Initial value:

    {
      "     [DEBUG]  ", 
      "      [INFO]  ", 
      "    [NORMAL]  ", 
      "   [WARNING]  ", 
      "     [ERROR]  "  
    }
Prefix of message.

Definition at line 43 of file constants.hh.

Referenced by Message::send().


Generated on Mon Apr 7 15:35:13 2014 for MyProject by  doxygen 1.4.7