35 MessageContainer::const_iterator msg =
mMessages.find(inId);
39 const Message message((*msg).second);
40 char msgString[BUFSIZ];
44 nbytes = snprintf(msgString, BUFSIZ,
"SUPPRESSED ");
48 nbytes = snprintf(msgString, BUFSIZ,
"INFO ");
52 nbytes = snprintf(msgString, BUFSIZ,
"ERROR ");
56 nbytes = snprintf(msgString, BUFSIZ,
"WARNING ");
61 nbytes = snprintf(msgString + nbytes, BUFSIZ - nbytes,
"%d : %s", inId, actualMsg.c_str());
62 if(nbytes >= BUFSIZ) {
75 mMessages[inId] = inMessage;
85 MessageContainer::const_iterator msg =
mMessages.find(inId);
96 return &singletonObject;
MessageContainer mMessages
static MessageTable * instance()
void changeMessageSeverity(MessageId inId, MessageSeverity inSeverity)
const MessageSeverity getSeverity() const
The Error object thrown by different methods of EdifOM.
void changeMessageString(MessageId inId, const Message &inMessage)
const std::string getMessage() const
std::string getMessage(MessageId inId) const