- // Generic
- void setRegexp(const std::string ®exp) throw() { a_regexp = regexp; }
- // Basic
- void setCode(const std::string &value) throw() { a_code = value; }
- void setBitR(const std::string &value) throw() { a_bitR = value; }
- void setHopByHop(const std::string &value) throw() { a_hopByHop = value; }
- void setApplicationId(const std::string &value) throw() { a_applicationId = value; }
- void setSessionId(const std::string &value) throw() { a_sessionId = value; }
- void setResultCode(const std::string &value) throw() { a_resultCode = value; }
- void setMsisdn(const std::string &value) throw() { a_msisdn = value; }
- void setImsi(const std::string &value) throw() { a_imsi = value; }
- void setServiceContextId(const std::string &value) throw() { a_serviceContextId = value; }
+ // 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; }
+
+ // 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; }