torc-master
|
#include <MessageTable.hpp>
Public Types | |
typedef std::map< MessageId, Message > | MessageContainer |
Public Member Functions | |
std::string | getMessage (MessageId inId) const |
void | changeMessageString (MessageId inId, const Message &inMessage) throw (Error) |
void | changeMessageSeverity (MessageId inId, MessageSeverity inSeverity) |
~MessageTable () throw () | |
Static Public Member Functions | |
static MessageTable * | instance () |
Private Member Functions | |
MessageTable () | |
MessageTable (const MessageTable &source) | |
MessageTable & | operator= (const MessageTable &source) |
void | operator delete (void *) |
Private Attributes | |
MessageContainer | mMessages |
Table of messages for this library. This is used for retrieving a message for a given MessageId.
Definition at line 35 of file MessageTable.hpp.
typedef std::map<MessageId, Message> torc::generic::MessageTable::MessageContainer |
Definition at line 37 of file MessageTable.hpp.
|
explicitprivate |
Definition at line 99 of file MessageTable.cpp.
torc::generic::MessageTable::~MessageTable | ( | ) | ||
throw | ( | |||
) |
Definition at line 142 of file MessageTable.cpp.
|
private |
void torc::generic::MessageTable::changeMessageSeverity | ( | MessageId | inId, |
MessageSeverity | inSeverity | ||
) |
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 84 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 74 of file MessageTable.cpp.
std::string torc::generic::MessageTable::getMessage | ( | MessageId | inId | ) | const |
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. |
Get the message string corresponding to the message inId. This is constructed using the actual message string and the currently set severity of this message.
[in] | inId | MessageId object to denote the message. |
Definition at line 34 of file MessageTable.cpp.
|
static |
Get a pointer to the singleton MessageTable object.
Definition at line 94 of file MessageTable.cpp.
|
private |
|
private |
|
private |
Definition at line 84 of file MessageTable.hpp.