class Engine : public anna::Singleton <Engine> {
- const anna::xml::DTDMemory * getDictionariesDTD() const throw() { return &a_dtd; }
+ const anna::xml::DTDMemory * getDictionariesDTD() const { return &a_dtd; }
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
/**
*
* @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
*
* @return String with class content
*/
- std::string asString(bool all = true) const throw();
+ std::string asString(bool all = true) const ;
// set
*
* @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
*
* @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).
* @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<unsigned int> & stacks, const std::string & xmlPathFile) throw(anna::RuntimeException);
+ void loadDictionary(const std::vector<unsigned int> & 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
*
* @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: