X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FInteger32.hpp;h=c0ffdac3170af18a8582ea479aea0f50bda0fe59;hb=f34b8069233e9e09208339bb79d8576c1ff962e1;hp=afdc9627c416e5fe19142a0ad30151a2e9d3bde3;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/include/anna/diameter/codec/basetypes/Integer32.hpp b/include/anna/diameter/codec/basetypes/Integer32.hpp index afdc962..c0ffdac 100644 --- a/include/anna/diameter/codec/basetypes/Integer32.hpp +++ b/include/anna/diameter/codec/basetypes/Integer32.hpp @@ -35,11 +35,12 @@ 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: + virtual ~Integer32() {;} // Class-specific //////////////////////////////////////////////////////////////////////////////////// // @@ -48,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); }; }