X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcore%2Futil%2FEncodedData.cpp;fp=source%2Fcore%2Futil%2FEncodedData.cpp;h=16816eb9fa43c5870538c8ce7213bd127c7ae873;hp=e818814928543e922d41b173c2b194f7afdad845;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/core/util/EncodedData.cpp b/source/core/util/EncodedData.cpp index e818814..16816eb 100644 --- a/source/core/util/EncodedData.cpp +++ b/source/core/util/EncodedData.cpp @@ -18,7 +18,7 @@ using namespace std; using namespace anna; void EncodedData::initialize(const xml::Node* parent) -throw(RuntimeException) { +noexcept(false) { if(fromBCD(parent->find("Key1")->getAttribute("Value")->getValue(), a_value) != sizeof(DES_key_schedule)) throw RuntimeException("anna::EncodedData::initialize | Key1 no valida", ANNA_FILE_LOCATION); @@ -44,7 +44,7 @@ throw(RuntimeException) { } xml::Node* EncodedData::asXML(xml::Node* parent) const -throw(RuntimeException) { +noexcept(false) { parent->createAttribute("Mode", "DES3"); xml::Node* node; string aux; @@ -63,7 +63,7 @@ throw(RuntimeException) { } const std::string& EncodedData::asBCD(const DataBlock& source, string& result) -throw() { +{ result = ""; const char* data = source.getData(); int c; @@ -81,7 +81,7 @@ throw() { } int EncodedData::fromBCD(const string& source, DataBlock& result) -throw() { +{ result.clear(); const char* data = source.c_str(); int len = 0, maxlen = source.length();