X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdiameter%2Fcodec%2FMessagesDeque.cpp;h=c20e62cf2aa8a855741107a88707e3e34bbb2c2d;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=2461e192854ed8e25572a068a74e0428aef4882c;hpb=d723d5bf571eb48c641b092058eaa38bb6c4fcc8;p=anna.git diff --git a/source/diameter/codec/MessagesDeque.cpp b/source/diameter/codec/MessagesDeque.cpp index 2461e19..c20e62c 100644 --- a/source/diameter/codec/MessagesDeque.cpp +++ b/source/diameter/codec/MessagesDeque.cpp @@ -21,7 +21,7 @@ using namespace anna::diameter::codec; -void MessagesDeque::clear() throw () { +void MessagesDeque::clear() { try { anna::diameter::codec::EngineManager &em = anna::diameter::codec::EngineManager::instantiate(); anna::diameter::codec::Engine *engine; @@ -44,7 +44,7 @@ void MessagesDeque::clear() throw () { } } -void MessagesDeque::dump(const char *filenamePrefix) throw () { +void MessagesDeque::dump(const char *filenamePrefix) { std::string outfilename, xmlString; for (messages_const_iterator it = a_deques.begin(); it != a_deques.end(); it++) { @@ -66,7 +66,7 @@ void MessagesDeque::dump(const char *filenamePrefix) throw () { } } -void MessagesDeque::addMessage(int code, anna::diameter::codec::Message *message) throw () { +void MessagesDeque::addMessage(int code, anna::diameter::codec::Message *message) { if (!message) return; // just in case @@ -80,7 +80,7 @@ void MessagesDeque::addMessage(int code, anna::diameter::codec::Message *message } } -anna::diameter::codec::Message* MessagesDeque::getMessage(int code) const throw () { //get the front message (begin()), returns NULL if deque is empty +anna::diameter::codec::Message* MessagesDeque::getMessage(int code) const { //get the front message (begin()), returns NULL if deque is empty anna::diameter::codec::Message *result = NULL; messages_const_iterator it = a_deques.find(code); if (it != a_deques.end()) { @@ -90,7 +90,7 @@ anna::diameter::codec::Message* MessagesDeque::getMessage(int code) const throw return result; } -void MessagesDeque::nextMessage(int code) throw () { //pops the deque and release the message (when deque is not empty: deque::empty) +void MessagesDeque::nextMessage(int code) { //pops the deque and release the message (when deque is not empty: deque::empty) anna::diameter::codec::Engine *engine; try { @@ -106,7 +106,7 @@ void MessagesDeque::nextMessage(int code) throw () { //pops the deque and releas engine->releaseMessage(message); } else { - LOGWARNING(anna::Logger::warning("Cannot release a message for which i don't know the codec engine (check the registered stack id regarding the message application id) !", ANNA_FILE_LOCATION)); + LOGWARNING(anna::Logger::warning("Cannot release a message for which I don't know the codec engine (check the registered stack id regarding the message application id) !", ANNA_FILE_LOCATION)); return; } } @@ -119,7 +119,7 @@ void MessagesDeque::nextMessage(int code) throw () { //pops the deque and releas } } -std::string MessagesDeque::asString(const char *queueName) const throw () { +std::string MessagesDeque::asString(const char *queueName) const { std::string result = ""; std::string aux = "FIFO QUEUE '"; aux += queueName;