X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FAddress.hpp;fp=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FAddress.hpp;h=b6e7fb6af7a48f6a90e06a799d24038a1582d650;hp=c20c556fe2a0d3825731d18984411439d06bab90;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/codec/basetypes/Address.hpp b/include/anna/diameter/codec/basetypes/Address.hpp index c20c556..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: @@ -93,7 +93,7 @@ public: * * @param abb Abbreviate mode boolean indicator */ - void setAbbreviatePresentation(bool abb) throw() { a_abbreviatePresentation = abb; }; + void setAbbreviatePresentation(bool abb) { a_abbreviatePresentation = abb; }; @@ -104,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 @@ -129,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 /////////////////////////////