#include <MessageTable.hpp>
Public Types | |
typedef std::map< MessageId, Message > | MessageContainer |
Public Member Functions | |
std::string | getMessage (MessageId inId) const throw () |
void | changeMessageString (MessageId inId, const Message &inMessage) throw (Error) |
void | changeMessageSeverity (MessageId inId, MessageSeverity inSeverity) throw () |
Static Public Member Functions | |
static MessageTable * | instance () |
Private Member Functions | |
MessageTable (const MessageTable &source) | |
MessageTable & | operator= (const MessageTable &source) throw () |
void | operator delete (void *) |
Private Attributes | |
MessageContainer | mMessages |
Definition at line 33 of file MessageTable.hpp.
std::string torc::generic::MessageTable::getMessage | ( | MessageId | inId | ) | const throw () |
Get the message string corresponding to the message id. This is constructed using the actual message string and the currently set severity of this message.
[in] | inId | MessageId object to denote the message. |
[in] | inId | MessageId object to denote the message. |
Definition at line 35 of file MessageTable.cpp.
void torc::generic::MessageTable::changeMessageString | ( | MessageId | inId, | |
const Message & | inMessage | |||
) | throw (Error) |
Change the message string for a given Id.
[in] | inId | MessageId that needs to be changed |
[in] | inMessage | New message that needs to be set. |
Definition at line 87 of file MessageTable.cpp.
void torc::generic::MessageTable::changeMessageSeverity | ( | MessageId | inId, | |
MessageSeverity | inSeverity | |||
) | throw () |
Change the message severity for a given Id.
[in] | inId | MessageId that needs to be changed |
[in] | inSeverity | New severity that needs to be set. |
Definition at line 99 of file MessageTable.cpp.
MessageTable * torc::generic::MessageTable::instance | ( | ) | [static] |
Get a pointer to the singleton MessageTable object.
Definition at line 113 of file MessageTable.cpp.