X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Ftesting%2FTestDiameterCondition.hpp;fp=include%2Fanna%2Ftesting%2FTestDiameterCondition.hpp;h=9b153b5f24af336288a43a86aaad8ad96c914562;hp=64ddc1430e133873bf3136e8f8d809e8705220cc;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/testing/TestDiameterCondition.hpp b/include/anna/testing/TestDiameterCondition.hpp index 64ddc14..9b153b5 100644 --- a/include/anna/testing/TestDiameterCondition.hpp +++ b/include/anna/testing/TestDiameterCondition.hpp @@ -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 ®exp) throw() { a_regexp = regexp; a_type = Type::RegexpXml; } - void setRegexpHex(const std::string ®exp) throw() { a_regexp = regexp; a_type = Type::RegexpHex; } + void setRegexpXml(const std::string ®exp) { a_regexp = regexp; a_type = Type::RegexpXml; } + void setRegexpHex(const std::string ®exp) { 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: