X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FInteger32.hpp;fp=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FInteger32.hpp;h=c0ffdac3170af18a8582ea479aea0f50bda0fe59;hp=cf7cd389ff3d88d9fd94df983ce59334341659c6;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/codec/basetypes/Integer32.hpp b/include/anna/diameter/codec/basetypes/Integer32.hpp index cf7cd38..c0ffdac 100644 --- a/include/anna/diameter/codec/basetypes/Integer32.hpp +++ b/include/anna/diameter/codec/basetypes/Integer32.hpp @@ -35,8 +35,8 @@ class Integer32 : 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 Integer32 value */ - const S32& getValue() const throw() { return a_value; } + const S32& getValue() const { return a_value; } /** * Sets the Integer32 value * * @param value Integer32 value */ - void setValue(const S32& value) throw() { a_value = value; } + void setValue(const S32& value) { a_value = value; } // ////////////////////////////////////////////////////////////////////////////////////////////////////// // gets - virtual std::string getFormatName() const throw() { return "Integer32"; } - virtual int getSize() const throw() { return 4; } + virtual std::string getFormatName() const { return "Integer32"; } + 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); }; }