Remove dynamic exceptions
[anna.git] / include / anna / diameter / stack / Command.hpp
index f5226fa..737537e 100644 (file)
@@ -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);
 };