Remove dynamic exceptions
[anna.git] / include / anna / testing / TestDiameterCondition.hpp
index 64ddc14..9b153b5 100644 (file)
@@ -32,7 +32,7 @@ class TestDiameterCondition {
     // RegexpHex = Regexp against HEX representation for incoming messages
     // Fields = Compare specific message fields
     struct Type { enum _v { RegexpXml, RegexpHex, Fields }; };
-    static const char* asText(const Type::_v type) throw();
+    static const char* asText(const Type::_v type) ;
 
     TestDiameterCondition() : a_rcvFromEntity(true),
 
@@ -44,26 +44,26 @@ class TestDiameterCondition {
 
 
     // Source of the received message
-    void setReceivedFromEntity(bool rfe) throw() { a_rcvFromEntity = rfe; }
-    bool receivedFromEntity() const throw() { return a_rcvFromEntity; }
+    void setReceivedFromEntity(bool rfe) { a_rcvFromEntity = rfe; }
+    bool receivedFromEntity() const { return a_rcvFromEntity; }
 
     // Regexp
-    void setRegexpXml(const std::string &regexp) throw() { a_regexp = regexp; a_type = Type::RegexpXml; }
-    void setRegexpHex(const std::string &regexp) throw() { a_regexp = regexp; a_type = Type::RegexpHex; }
+    void setRegexpXml(const std::string &regexp) { a_regexp = regexp; a_type = Type::RegexpXml; }
+    void setRegexpHex(const std::string &regexp) { a_regexp = regexp; a_type = Type::RegexpHex; }
 
     // Fields
-    void setCode(const std::string &value) throw() { a_code = value; a_type = Type::Fields; }
-    void setBitR(const std::string &value) throw() { a_bitR = value; a_type = Type::Fields; }
-    void setHopByHop(const std::string &value) throw() { a_hopByHop = value; a_type = Type::Fields; }
-    void setApplicationId(const std::string &value) throw() { a_applicationId = value; a_type = Type::Fields; }
-    void setSessionId(const std::string &value) throw() { a_sessionId = value; a_type = Type::Fields; }
-    void setResultCode(const std::string &value) throw() { a_resultCode = value; a_type = Type::Fields; }
-    void setMsisdn(const std::string &value) throw() { a_msisdn = value; a_type = Type::Fields; }
-    void setImsi(const std::string &value) throw() { a_imsi = value; a_type = Type::Fields; }
-    void setServiceContextId(const std::string &value) throw() { a_serviceContextId = value; a_type = Type::Fields; }
-
-    bool exists() const throw();
-    friend bool operator==(const TestDiameterCondition &c1, const TestDiameterCondition &c2) throw() {
+    void setCode(const std::string &value) { a_code = value; a_type = Type::Fields; }
+    void setBitR(const std::string &value) { a_bitR = value; a_type = Type::Fields; }
+    void setHopByHop(const std::string &value) { a_hopByHop = value; a_type = Type::Fields; }
+    void setApplicationId(const std::string &value) { a_applicationId = value; a_type = Type::Fields; }
+    void setSessionId(const std::string &value) { a_sessionId = value; a_type = Type::Fields; }
+    void setResultCode(const std::string &value) { a_resultCode = value; a_type = Type::Fields; }
+    void setMsisdn(const std::string &value) { a_msisdn = value; a_type = Type::Fields; }
+    void setImsi(const std::string &value) { a_imsi = value; a_type = Type::Fields; }
+    void setServiceContextId(const std::string &value) { a_serviceContextId = value; a_type = Type::Fields; }
+
+    bool exists() const ;
+    friend bool operator==(const TestDiameterCondition &c1, const TestDiameterCondition &c2) {
 
       if (c1.getType() != c2.getType()) return false;
 
@@ -86,25 +86,25 @@ class TestDiameterCondition {
     }
 
 
-    const Type::_v &getType() const throw() { return a_type; }
+    const Type::_v &getType() const { return a_type; }
 
     // Regexp:
-    const std::string & getRegexp() const throw() { return a_regexp; }
+    const std::string & getRegexp() const { return a_regexp; }
     // Basic
-    const std::string & getCode() const throw() { return a_code; }
-    const std::string & getBitR() const throw() { return a_bitR; }
-    const std::string & getHopByHop() const throw() { return a_hopByHop; }
-    const std::string & getApplicationId() const throw() { return a_applicationId; }
-    const std::string & getSessionId() const throw() { return a_sessionId; }
-    const std::string & getResultCode() const throw() { return a_resultCode; }
-    const std::string & getMsisdn() const throw() { return a_msisdn; }
-    const std::string & getImsi() const throw() { return a_imsi; }
-    const std::string & getServiceContextId() const throw() { return a_serviceContextId; }
+    const std::string & getCode() const { return a_code; }
+    const std::string & getBitR() const { return a_bitR; }
+    const std::string & getHopByHop() const { return a_hopByHop; }
+    const std::string & getApplicationId() const { return a_applicationId; }
+    const std::string & getSessionId() const { return a_sessionId; }
+    const std::string & getResultCode() const { return a_resultCode; }
+    const std::string & getMsisdn() const { return a_msisdn; }
+    const std::string & getImsi() const { return a_imsi; }
+    const std::string & getServiceContextId() const { return a_serviceContextId; }
 
 
-    bool comply (const anna::DataBlock &message) const throw();
+    bool comply (const anna::DataBlock &message) const ;
 
-    anna::xml::Node* asXML(anna::xml::Node* parent) const throw();
+    anna::xml::Node* asXML(anna::xml::Node* parent) const ;
 
 
   private: