X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FUnsigned64.hpp;fp=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FUnsigned64.hpp;h=6ab069666291ca841826bba7af43499f5beb0ea8;hp=02b050a66467be0202635dd23b88e0297c5651ef;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/codec/basetypes/Unsigned64.hpp b/include/anna/diameter/codec/basetypes/Unsigned64.hpp index 02b050a..6ab0696 100644 --- a/include/anna/diameter/codec/basetypes/Unsigned64.hpp +++ b/include/anna/diameter/codec/basetypes/Unsigned64.hpp @@ -35,8 +35,8 @@ class Unsigned64 : public AvpData { // Mandatory for basic diameter type: - void codeBasic(char* buffer, int &size) throw(anna::RuntimeException); - void setPrintableString(const char * printableString) throw(anna::RuntimeException); + void codeBasic(char* buffer, int &size) noexcept(false); + void setPrintableString(const char * printableString) noexcept(false); public: @@ -49,38 +49,38 @@ public: * * @return Unsigned64 value */ - const U64& getValue() const throw() { return a_value; } + const U64& getValue() const { return a_value; } /** * Sets the Unsigned64 value * * @param value Unsigned64 value */ - void setValue(const U64& value) throw() { a_value = value; } + void setValue(const U64& value) { a_value = value; } // ////////////////////////////////////////////////////////////////////////////////////////////////////// // gets - virtual std::string getFormatName() const throw() { return "Unsigned64"; } - virtual int getSize() const throw() { return 8; } + virtual std::string getFormatName() const { return "Unsigned64"; } + virtual int getSize() const { return 8; } // helpers - std::string asPrintableString() throw(anna::RuntimeException) { + std::string asPrintableString() noexcept(false) { return anna::functions::asString((anna::U64)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); }; }