-bool TestCondition::exists() const throw() {
- if (a_type == Type::Generic)
- return (a_regexp != "");
- else
- return (a_code != "" || a_bitR != "" || a_hopByHop != "" || a_applicationId != "" || a_sessionId != "" || a_resultCode != "" || a_msisdn != "" || a_imsi != "" || a_serviceContextId != "");
-}
-
-/*
-bool anna::testing::operator==(const TestCondition &c1, const TestCondition &c2) throw() {
-
- if (c1.getType() != c2.getType()) return false;
-
- if (c1.getType() == TestCondition::Type::Generic) {
- if (c1.getRegexp() != c2.getRegexp()) return false;
- }
- else {
- if (c1.getCode() != c2.getCode()) return false;
- if (c1.getBitR() != c2.getBitR()) return false;
- if (c1.getHopByHop() != c2.getHopByHop()) return false;
- if (c1.getApplicationId() != c2.getApplicationId()) return false;
- if (c1.getSessionId() != c2.getSessionId()) return false;
- if (c1.getResultCode() != c2.getResultCode()) return false;
- if (c1.getMsisdn() != c2.getMsisdn()) return false;
- if (c1.getImsi() != c2.getImsi()) return false;
- if (c1.getServiceContextId() != c2.getServiceContextId()) return false;
- }