X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2Fbasetypes%2FOctetString.hpp;h=a21ddeefe6fafa58aeac9379ba3774f6e51bd8f3;hp=cd765e5742efb0e57b3014fa5bf1cecceeda0191;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/codec/basetypes/OctetString.hpp b/include/anna/diameter/codec/basetypes/OctetString.hpp index cd765e5..a21ddee 100644 --- a/include/anna/diameter/codec/basetypes/OctetString.hpp +++ b/include/anna/diameter/codec/basetypes/OctetString.hpp @@ -33,12 +33,12 @@ class OctetString : 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); protected: - void assertPrintable() const throw(anna::RuntimeException); + void assertPrintable() const noexcept(false); public: @@ -51,29 +51,29 @@ public: * * @return OctetString value */ - const std::string& getValue() const throw() { return a_value; } + const std::string& getValue() const { return a_value; } /** * Sets the OctetString value * * @param value OctetString value */ - void setValue(const std::string& value) throw() { a_value = value; } + void setValue(const std::string& value) { a_value = value; } // ////////////////////////////////////////////////////////////////////////////////////////////////////// // gets // virtual for Unknown format container - virtual std::string getFormatName() const throw() { return "OctetString"; } - virtual int getSize() const throw() { return a_value.size(); } + virtual std::string getFormatName() const { return "OctetString"; } + virtual int getSize() const { return a_value.size(); } // helpers // sets - void decode(const char* buffer, const int size) throw(anna::RuntimeException); + void decode(const char* buffer, const int size) noexcept(false); }; }