X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fcomm%2FVariable.hpp;fp=include%2Fanna%2Fcomm%2FVariable.hpp;h=2191568128154e08b54aabeb46f8b04818f734c2;hp=a6b76329973475e6c047d1919c89a7bed73ebde1;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/comm/Variable.hpp b/include/anna/comm/Variable.hpp index a6b7632..2191568 100644 --- a/include/anna/comm/Variable.hpp +++ b/include/anna/comm/Variable.hpp @@ -118,16 +118,16 @@ public: Devuelve el identificador logico de esta variable. \return el identificador logico de esta variable. */ - short int getId() const throw() { return a_id; } + short int getId() const { return a_id; } private: const short int a_id; DataBlock a_precode; - const DataBlock& codec() const throw(RuntimeException) { + const DataBlock& codec() const noexcept(false) { return (a_precode.isEmpty() == false) ? a_precode : precodec(); } - const DataBlock& precodec() const throw(RuntimeException) { + const DataBlock& precodec() const noexcept(false) { char aux [sizeof(short int)]; const_cast (this)->a_precode.append(comm::functions::codeShort(aux, a_id), sizeof(short int)); const_cast (this)->a_precode += (char) getType();