class to encapsulate a message to the user. More...
Public Types | |
| enum | Type { Info, Message, Warning, Error, ProgrammerError } |
Public Member Functions | |
| MsgClass (const char *s, Type t=Info) | |
Static Public Member Functions | |
| static CallBack & | theCB (const CallBack *cb=0) |
| pass non-null to set the CB | |
| static const char * | nameOf (Type) |
Public Attributes | |
| const char * | msg |
| Type | type_ |
class to encapsulate a message to the user.
Along with the message there's also a type. In any case, there's a handler for when UsrMsg is called: theCB. If it is not set, messages go to cerr.
| enum MsgClass::Type |
| MsgClass::MsgClass | ( | const char * | s, | |
| Type | t = Info | |||
| ) | [inline] |
| static const char* MsgClass::nameOf | ( | Type | ) | [static] |
| const char* MsgClass::msg |
1.7.1