X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;ds=sidebyside;f=include%2Fanna%2Fdiameter%2Fstack%2FAvpRule.hpp;h=ead1dc66097e00a234fc818ad3470c443863f903;hb=24ef34af54c4a42fcbd65a0ef065bddaaf1bd096;hp=e31817fbf274a3379b03f524ebcae04b53260094;hpb=0a5f4f3cacf71411409feda7a38b790b292c1121;p=anna.git diff --git a/include/anna/diameter/stack/AvpRule.hpp b/include/anna/diameter/stack/AvpRule.hpp index e31817f..ead1dc6 100644 --- a/include/anna/diameter/stack/AvpRule.hpp +++ b/include/anna/diameter/stack/AvpRule.hpp @@ -75,13 +75,12 @@ public: private: const Dictionary *a_dictionary; - std::string a_avpName; // reference + AvpId a_avpId; // reference Presence::_v a_presence; std::string a_qual; void _initialize(const Dictionary *d) throw() { a_dictionary = d; - a_avpName = ""; a_presence = Presence::None; a_qual = ""; } @@ -94,12 +93,12 @@ public: // get - const std::string & getAvpName(void) const throw() { return a_avpName; } + std::string getAvpName(void) const throw(); const Presence::_v & getPresence(void) const throw() { return a_presence; } const std::string & getQual(void) const throw() { return a_qual; } // helpers - AvpId getId(void) const throw(); + AvpId getId(void) const throw() { return a_avpId; } bool isAny(void) const throw(); // generic Avp bool isFixed(void) const throw() { return (a_presence == Presence::Fixed); } bool isMandatory(void) const throw() { return (a_presence == Presence::Mandatory); } @@ -114,7 +113,7 @@ public: // set void initialize(const Dictionary *d = NULL) throw() { _initialize(d); } - void setAvpName(const std::string & an) throw() { a_avpName = an; } + void setAvpId(const AvpId & ai) throw() { a_avpId = ai; } void setPresence(const Presence::_v & p) throw() { a_presence = p; } void setQual(const std::string & q) throw(anna::RuntimeException); };