X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FAddress.hpp;h=b6e7fb6af7a48f6a90e06a799d24038a1582d650;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=583ac7ca0579f6f62a254ac195c80edd39a5d474;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/include/anna/diameter/codec/basetypes/Address.hpp b/include/anna/diameter/codec/basetypes/Address.hpp index 583ac7c..b6e7fb6 100644 --- a/include/anna/diameter/codec/basetypes/Address.hpp +++ b/include/anna/diameter/codec/basetypes/Address.hpp @@ -71,9 +71,9 @@ class Address : OctetString { // Only for derived diameter type: - void updateBasic() throw(anna::RuntimeException); + void updateBasic() noexcept(false); - void setPrintableString(const char * printableString) throw(anna::RuntimeException); + void setPrintableString(const char * printableString) noexcept(false); public: @@ -83,12 +83,17 @@ public: */ Address() : a_abbreviatePresentation(true) {}; + /** + * Destructor + */ + virtual ~Address() {;} + /** * Presentation mode: abbreviate (i.e. two standard rules applied for IPv6) or expanded (i.e. groups of zeroes on IP address) * * @param abb Abbreviate mode boolean indicator */ - void setAbbreviatePresentation(bool abb) throw() { a_abbreviatePresentation = abb; }; + void setAbbreviatePresentation(bool abb) { a_abbreviatePresentation = abb; }; @@ -99,21 +104,21 @@ public: * * @return IANA address */ - const iana_address_t& getIANAAddress() const throw() { return a_address; } + const iana_address_t& getIANAAddress() const { return a_address; } /** * Sets the IANA address * * @param address IANA address */ - void setIANAAddress(const iana_address_t& address) throw(anna::RuntimeException) { a_address = address; updateBasic(); } + void setIANAAddress(const iana_address_t& address) noexcept(false) { a_address = address; updateBasic(); } // ////////////////////////////////////////////////////////////////////////////////////////////////////// // gets - std::string getFormatName() const throw() { return "Address"; } + std::string getFormatName() const { return "Address"; } // helpers @@ -124,15 +129,15 @@ public: * * @return Natural/smart string representation for IANA address (only IPv4 and IPv6 are printable-supported) */ - std::string asPrintableString() throw(anna::RuntimeException); + std::string asPrintableString() noexcept(false); - std::string asString() throw(anna::RuntimeException) { return a_address.asString(); } + std::string asString() noexcept(false) { return a_address.asString(); } // sets - void decode(const char* buffer, const int size) throw(anna::RuntimeException); + void decode(const char* buffer, const int size) noexcept(false); // exports /////////////////////////////