X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fstack%2FVendor.hpp;h=4267a39a31dbb54629de028efdd600a9f9f4ff81;hp=f11f8eac31b6fca38a76190023c132d74fbe4ff3;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/stack/Vendor.hpp b/include/anna/diameter/stack/Vendor.hpp index f11f8ea..4267a39 100644 --- a/include/anna/diameter/stack/Vendor.hpp +++ b/include/anna/diameter/stack/Vendor.hpp @@ -67,7 +67,7 @@ public: * @param v Vendor code * @return Vendor name */ - static const char* asText(const Code::_v v) throw(anna::RuntimeException) { + static const char* asText(const Code::_v v) noexcept(false) { return asCString(v); } }; @@ -78,27 +78,27 @@ public: // get - S32 getId(void) const throw() { return a_id; } - const S8 * getName(void) const throw() { return a_name.c_str(); } + S32 getId(void) const { return a_id; } + const S8 * getName(void) const { return a_name.c_str(); } // helpers - bool isVendorSpecific(void) const throw() { return (a_id > 0); } + bool isVendorSpecific(void) const { return (a_id > 0); } - std::string asString(void) const throw(); - anna::xml::Node* asXML(anna::xml::Node* parent) const throw(); + std::string asString(void) const ; + anna::xml::Node* asXML(anna::xml::Node* parent) const ; // operators friend bool operator == (const Vendor & v1, const Vendor & v2) { return ((v1.getId() == v2.getId())); } // set - void setId(const S32 & id) throw(anna::RuntimeException) { + void setId(const S32 & id) noexcept(false) { if(id < 0) throw anna::RuntimeException("Negative vendor-id not allowed", ANNA_FILE_LOCATION); a_id = id; } - void setName(const std::string & n) throw(anna::RuntimeException) { + void setName(const std::string & n) noexcept(false) { if(n == "") throw anna::RuntimeException("Empty vendor-name string not allowed", ANNA_FILE_LOCATION); a_name = n;