X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fstack%2FCommand.hpp;fp=include%2Fanna%2Fdiameter%2Fstack%2FCommand.hpp;h=737537e5bb295882ca44a5bf4c50d6ffef82fb3f;hp=f5226fa1110660e160870371f2305a6ad0b5426f;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/stack/Command.hpp b/include/anna/diameter/stack/Command.hpp index f5226fa..737537e 100644 --- a/include/anna/diameter/stack/Command.hpp +++ b/include/anna/diameter/stack/Command.hpp @@ -66,13 +66,13 @@ private: bool a_allowFixedRule; int a_avprulePosition; - void _initializeRules() throw() { + void _initializeRules() { a_avprules.clear(); a_allowFixedRule = true; a_avprulePosition = 0; } - void _initialize(const Dictionary *d) throw() { + void _initialize(const Dictionary *d) { a_dictionary = d; _initializeRules(); } @@ -84,41 +84,41 @@ public: // get - const CommandId & getId(void) const throw() { return a_id; } - const std::string & getName(void) const throw() { return a_name; } + const CommandId & getId(void) const { return a_id; } + const std::string & getName(void) const { return a_name; } // containers - const_avprule_iterator avprule_begin() const throw() { return a_avprules.begin(); } - const_avprule_iterator avprule_end() const throw() { return a_avprules.end(); } - int avprule_size() const throw() { return a_avprules.size(); } + const_avprule_iterator avprule_begin() const { return a_avprules.begin(); } + const_avprule_iterator avprule_end() const { return a_avprules.end(); } + int avprule_size() const { return a_avprules.size(); } // helpers - bool isEmpty(void) const throw() { return (!a_avprules.size()); } - bool isRequest(void) const throw() { return (a_id.second); } - bool isAnswer(void) const throw() { return (!a_id.second); } - bool isChild(const AvpId & avp) const throw(); + bool isEmpty(void) const { return (!a_avprules.size()); } + bool isRequest(void) const { return (a_id.second); } + bool isAnswer(void) const { return (!a_id.second); } + bool isChild(const AvpId & avp) const ; - std::string asString(void) const throw(); - anna::xml::Node* asXML(anna::xml::Node* parent) const throw(); + std::string asString(void) const ; + anna::xml::Node* asXML(anna::xml::Node* parent) const ; // operators // set - void initialize(const Dictionary *d = NULL) throw() { _initialize(d); } - void setCode(const U24 & c) throw(anna::RuntimeException) { + void initialize(const Dictionary *d = NULL) { _initialize(d); } + void setCode(const U24 & c) noexcept(false) { a_id.first = c; } - void setRequest(bool r = true) throw() { a_id.second = r; } - void setAnswer(bool a = true) throw() { a_id.second = a; } - void setName(const std::string & n) throw(anna::RuntimeException) { + void setRequest(bool r = true) { a_id.second = r; } + void setAnswer(bool a = true) { a_id.second = a; } + void setName(const std::string & n) noexcept(false) { if(n == "") throw anna::RuntimeException("Empty command-name string not allowed", ANNA_FILE_LOCATION); a_name = n; } - void addAvpRule(const AvpRule & avpRule) throw(anna::RuntimeException); + void addAvpRule(const AvpRule & avpRule) noexcept(false); };