X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdiameter%2Fstack%2FEngine.cpp;h=0acb5e1c57e8c96b2039a8d66cbeee75fd056676;hb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4;hp=d338fef1b3513eb4dc3a7e0b9ccb65ae79746e1f;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/source/diameter/stack/Engine.cpp b/source/diameter/stack/Engine.cpp index d338fef..0acb5e1 100644 --- a/source/diameter/stack/Engine.cpp +++ b/source/diameter/stack/Engine.cpp @@ -19,11 +19,6 @@ #include - -// libxml2 Parser doesn't support default attribute value retrieving: -// \n\ -// This dtd sintax will be replaced by #IMPLIED attributes. - namespace anna { namespace diameter { namespace stack { @@ -150,7 +145,6 @@ const anna::diameter::stack::Dictionary * anna::diameter::stack::Engine::getDict //------------------------------------------------------------------------------ std::string anna::diameter::stack::Engine::asString(bool all) const throw() { std::string trace; - unsigned int stackId; if(isEmpty()) { trace = "No diameter stacks found"; @@ -192,7 +186,7 @@ anna::diameter::stack::Dictionary * anna::diameter::stack::Engine::registerDicti throw anna::RuntimeException("Such provided stack id has already been created. Removes it before call this method", ANNA_FILE_LOCATION); } else { // new stack a_stacks[stackId] = dictionary; // no need for singleton destructor - const_stack_iterator it = a_stacks.find(stackId); + //const_stack_iterator it = a_stacks.find(stackId); //result = (Dictionary *)(*it).second; result = dictionary; } @@ -207,7 +201,7 @@ anna::diameter::stack::Dictionary * anna::diameter::stack::Engine::createDictio Dictionary * result = const_cast(getDictionary(stackId)); if(result) // if exists, launch exception - throw anna::RuntimeException("Such provided stack id has already been created. Removes it before call this method", ANNA_FILE_LOCATION); + throw anna::RuntimeException("Such provided stack id has already been created (note: API allows you to remove any registered stack)", ANNA_FILE_LOCATION); // Register a new dictionary: result = registerDictionary(stackId, new Dictionary());