X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FFloat32.hpp;h=b51b5ba57e6770569a01a7318bd97eea1dab51af;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=340c5d9a7ba52295d0fddb469175d919844e55ad;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/include/anna/diameter/codec/basetypes/Float32.hpp b/include/anna/diameter/codec/basetypes/Float32.hpp index 340c5d9..b51b5ba 100644 --- a/include/anna/diameter/codec/basetypes/Float32.hpp +++ b/include/anna/diameter/codec/basetypes/Float32.hpp @@ -36,11 +36,12 @@ class Float32 : 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 ~Float32() {;} // Class-specific //////////////////////////////////////////////////////////////////////////////////// // @@ -49,38 +50,38 @@ public: * * @return Float32 value */ - const F32& getValue() const throw() { return a_value; } + const F32& getValue() const { return a_value; } /** * Sets the Float32 value * * @param value Float32 value */ - void setValue(const F32& value) throw() { a_value = value; } + void setValue(const F32& value) { a_value = value; } // ////////////////////////////////////////////////////////////////////////////////////////////////////// // gets - virtual std::string getFormatName() const throw() { return "Float32"; } - virtual int getSize() const throw() { return 4; } + virtual std::string getFormatName() const { return "Float32"; } + 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); }; }