X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FUnsigned32.hpp;h=05a793b0d1d5b9ebfc7af53ec166333ac08f8055;hb=HEAD;hp=3aaa56f2c675b4ccec51757469cab3cf5e297590;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/include/anna/diameter/codec/basetypes/Unsigned32.hpp b/include/anna/diameter/codec/basetypes/Unsigned32.hpp index 3aaa56f..05a793b 100644 --- a/include/anna/diameter/codec/basetypes/Unsigned32.hpp +++ b/include/anna/diameter/codec/basetypes/Unsigned32.hpp @@ -35,11 +35,12 @@ class Unsigned32 : 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: + virtual ~Unsigned32() {;} // Class-specific //////////////////////////////////////////////////////////////////////////////////// // @@ -48,38 +49,38 @@ public: * * @return Unsigned32 value */ - const U32& getValue() const throw() { return a_value; } + const U32& getValue() const { return a_value; } /** * Sets the Unsigned32 value * * @param value Unsigned32 value */ - void setValue(const U32& value) throw() { a_value = value; } + void setValue(const U32& value) { a_value = value; } // ////////////////////////////////////////////////////////////////////////////////////////////////////// // gets - virtual std::string getFormatName() const throw() { return "Unsigned32"; } - virtual int getSize() const throw() { return 4; } + virtual std::string getFormatName() const { return "Unsigned32"; } + virtual int getSize() const { return 4; } // 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); }; }