X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fcomm%2FSureTransport.hpp;h=2b6de8073897885ea472690fb6bb2b715b134f26;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=db604666c1a561b3febf8314b0351fe900f0f7fc;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/include/anna/comm/SureTransport.hpp b/include/anna/comm/SureTransport.hpp index db60466..2b6de80 100644 --- a/include/anna/comm/SureTransport.hpp +++ b/include/anna/comm/SureTransport.hpp @@ -31,19 +31,19 @@ public: /** Destructor. */ - ~SureTransport(); + virtual ~SureTransport(); /** Class name literal \return Class name literal */ - static const char* className() throw() { return "anna::comm::SureTransport"; } + static const char* className() { return "anna::comm::SureTransport"; } /** Returns the transport layer manager associated to this class. \return transport layer manager associated to this class. */ - static TransportFactory& getFactory() throw() { return st_transportFactory; } + static TransportFactory& getFactory() { return st_transportFactory; } protected: static const short int headerSize = (sizeof(short int) + sizeof(int)); @@ -58,9 +58,9 @@ protected: private: DataBlock a_precodec; - int calculeSize(const DataBlock& dataBlock) throw(RuntimeException); - const Message* decode(const DataBlock& message) throw(RuntimeException); - virtual const DataBlock& code(Message&) throw(RuntimeException); + int calculeSize(const DataBlock& dataBlock) noexcept(false); + const Message* decode(const DataBlock& message) noexcept(false); + virtual const DataBlock& code(Message&) noexcept(false); friend class anna::Allocator ; };