X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FFloat64.hpp;h=53dd13799aefbafd6cf3d2a1c94390c483bb3b0a;hp=b7a70be6d6aac969bdafc20fbfe881204f9e1711;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/codec/basetypes/Float64.hpp b/include/anna/diameter/codec/basetypes/Float64.hpp index b7a70be..53dd137 100644 --- a/include/anna/diameter/codec/basetypes/Float64.hpp +++ b/include/anna/diameter/codec/basetypes/Float64.hpp @@ -36,8 +36,8 @@ class Float64 : 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: @@ -50,38 +50,38 @@ public: * * @return Float64 value */ - const F64& getValue() const throw() { return a_value; } + const F64& getValue() const { return a_value; } /** * Sets the Float64 value * * @param value Float64 value */ - void setValue(const F64& value) throw() { a_value = value; } + void setValue(const F64& value) { a_value = value; } // ////////////////////////////////////////////////////////////////////////////////////////////////////// // gets - virtual std::string getFormatName() const throw() { return "Float64"; } - virtual int getSize() const throw() { return 8; } + virtual std::string getFormatName() const { return "Float64"; } + virtual int getSize() const { return 8; } // 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); }; }