X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fstack%2FEngine.hpp;fp=include%2Fanna%2Fdiameter%2Fstack%2FEngine.hpp;h=e15ac1baea38d71e5abd14f7d69649df02d61a2b;hp=854ce36e2f5d1f3b27cec939e6e36cd3c52135f1;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/stack/Engine.hpp b/include/anna/diameter/stack/Engine.hpp index 854ce36..e15ac1b 100644 --- a/include/anna/diameter/stack/Engine.hpp +++ b/include/anna/diameter/stack/Engine.hpp @@ -39,7 +39,7 @@ namespace stack { class Engine : public anna::Singleton { - const anna::xml::DTDMemory * getDictionariesDTD() const throw() { return &a_dtd; } + const anna::xml::DTDMemory * getDictionariesDTD() const { return &a_dtd; } public: @@ -56,14 +56,14 @@ public: * @param stackId Stack identifier. * @return Dictionary reference, NULL if no stack found */ - const Dictionary * getDictionary(unsigned int stackId) const throw(); + const Dictionary * getDictionary(unsigned int stackId) const ; /** Beginning stack iterator */ - const_stack_iterator stack_begin() const throw() { return a_stacks.begin(); } + const_stack_iterator stack_begin() const { return a_stacks.begin(); } /** Ending stack iterator */ - const_stack_iterator stack_end() const throw() { return a_stacks.end(); } + const_stack_iterator stack_end() const { return a_stacks.end(); } /** Stack size */ - int stack_size() const throw() { return a_stacks.size(); } + int stack_size() const { return a_stacks.size(); } // helpers /** @@ -71,7 +71,7 @@ public: * * @return Boolean about empty stack condition */ - bool isEmpty(void) const throw() { return (!a_stacks.size()); } + bool isEmpty(void) const { return (!a_stacks.size()); } /** * Class string representation @@ -80,7 +80,7 @@ public: * * @return String with class content */ - std::string asString(bool all = true) const throw(); + std::string asString(bool all = true) const ; // set @@ -117,7 +117,7 @@ public: * * @return Dictionary registered. When exception happen, dictionary can be accessed by #getDictionary */ - Dictionary * createDictionary(unsigned int stackId, const std::string & xmlPathFile = "") throw(anna::RuntimeException); + Dictionary * createDictionary(unsigned int stackId, const std::string & xmlPathFile = "") noexcept(false); /** * Register a externally created Dictionary or a derived class from Dictionary @@ -128,7 +128,7 @@ public: * * @return Dictionary registered. When exception happen, dictionary can be accessed by #getDictionary */ - Dictionary * registerDictionary(unsigned int stackId, Dictionary *dictionary) throw(anna::RuntimeException); + Dictionary * registerDictionary(unsigned int stackId, Dictionary *dictionary) noexcept(false); /** * Loads an XML dictionary document over the diameter stack identifiers (one or more stack id's). @@ -138,7 +138,7 @@ public: * @param stacks Stacks identifiers over which the dictionary will be load. * @param xmlPathFile Path file to the xml document which represents the diameter dictionary. */ - void loadDictionary(const std::vector & stacks, const std::string & xmlPathFile) throw(anna::RuntimeException); + void loadDictionary(const std::vector & stacks, const std::string & xmlPathFile) noexcept(false); /** * Loads an XML dictionary document over all the diameter engine registered stacks. When more than one stack id is @@ -147,19 +147,19 @@ public: * * @param xmlPathFile Path file to the xml document which represents the diameter dictionary. */ - void loadDictionary(const std::string & xmlPathFile) throw(anna::RuntimeException); + void loadDictionary(const std::string & xmlPathFile) noexcept(false); /** * Remove all stacks registered on diameter stack engine */ - void removeStacks(void) throw() { a_stacks.clear(); } + void removeStacks(void) { a_stacks.clear(); } /** * Remove the stack provided. * * @param stackId Stack identifier for created dictionary */ - void removeStack(unsigned int stackId) throw(); + void removeStack(unsigned int stackId) ; private: