* @param v Presence type
* @return Presence description
*/
- static const char* asText(const Presence::_v v) throw(anna::RuntimeException) {
+ static const char* asText(const Presence::_v v) noexcept(false) {
return asCString(v);
}
};
Presence::_v a_presence;
std::string a_qual;
- void _initialize(const Dictionary *d) throw() {
+ void _initialize(const Dictionary *d) {
a_dictionary = d;
a_presence = Presence::None;
a_qual = "";
// get
- 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; }
+ std::string getAvpName(void) const ;
+ const Presence::_v & getPresence(void) const { return a_presence; }
+ const std::string & getQual(void) const { return a_qual; }
// helpers
- 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); }
- bool isOptional(void) const throw() { return (a_presence == Presence::Optional); }
- int getQualMin(void) const throw();
- int getQualMax(void) const throw(); // -1 is infinite
+ AvpId getId(void) const { return a_avpId; }
+ bool isAny(void) const ; // generic Avp
+ bool isFixed(void) const { return (a_presence == Presence::Fixed); }
+ bool isMandatory(void) const { return (a_presence == Presence::Mandatory); }
+ bool isOptional(void) const { return (a_presence == Presence::Optional); }
+ int getQualMin(void) const ;
+ int getQualMax(void) const ; // -1 is infinite
- std::string asString(bool showPair = true) const throw();
- anna::xml::Node* asXML(anna::xml::Node* parent) const throw();
+ std::string asString(bool showPair = true) const ;
+ anna::xml::Node* asXML(anna::xml::Node* parent) const ;
// operators
// set
- void initialize(const Dictionary *d = NULL) throw() { _initialize(d); }
- 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);
+ void initialize(const Dictionary *d = NULL) { _initialize(d); }
+ void setAvpId(const AvpId & ai) { a_avpId = ai; }
+ void setPresence(const Presence::_v & p) { a_presence = p; }
+ void setQual(const std::string & q) noexcept(false);
};