X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fhelpers%2Ftme%2Fcodectypes%2FUnsigned16.hpp;fp=include%2Fanna%2Fdiameter%2Fhelpers%2Ftme%2Fcodectypes%2FUnsigned16.hpp;h=7b54fda18fa0edcb6797a4c8a223c4da79def663;hp=f899889c25ad0c6cc5a7cafdb4081cf740da0a41;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/helpers/tme/codectypes/Unsigned16.hpp b/include/anna/diameter/helpers/tme/codectypes/Unsigned16.hpp index f899889..7b54fda 100644 --- a/include/anna/diameter/helpers/tme/codectypes/Unsigned16.hpp +++ b/include/anna/diameter/helpers/tme/codectypes/Unsigned16.hpp @@ -39,8 +39,8 @@ class Unsigned16 : codec::basetypes::OctetString { // Only for derived diameter type: - void updateBasic() throw(anna::RuntimeException); - void setPrintableString(const char * printableString) throw(anna::RuntimeException); + void updateBasic() noexcept(false); + void setPrintableString(const char * printableString) noexcept(false); public: @@ -52,37 +52,37 @@ public: * * @return Unsigned16 value */ - const U16& getValue() const throw() { return a_value; } + const U16& getValue() const { return a_value; } /** * Sets the Unsigned16 value * * @param value Unsigned16 value */ - void setValue(const U16& value) throw() { a_value = value; updateBasic(); } + void setValue(const U16& value) { a_value = value; updateBasic(); } // ////////////////////////////////////////////////////////////////////////////////////////////////////// // gets - std::string getFormatName() const throw() { return "Unsigned16"; } + std::string getFormatName() const { return "Unsigned16"; } // helpers - std::string asPrintableString() throw(anna::RuntimeException) { + std::string asPrintableString() noexcept(false) { return anna::functions::asString(a_value); } - std::string asString() throw(anna::RuntimeException) { + std::string asString() noexcept(false) { return asPrintableString(); } // sets - void decode(const char* buffer, const int size) throw(anna::RuntimeException); + void decode(const char* buffer, const int size) noexcept(false); // exports /////////////////////////////