Mercurial > hg > orthanc
diff Core/JobsEngine/GenericJobUnserializer.cpp @ 2655:c196d76cb8fa jobs
serialization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Jun 2018 17:57:49 +0200 |
parents | a3f0f61a14ca |
children | a6d3e45eeff5 |
line wrap: on
line diff
--- a/Core/JobsEngine/GenericJobUnserializer.cpp Tue Jun 05 17:09:18 2018 +0200 +++ b/Core/JobsEngine/GenericJobUnserializer.cpp Tue Jun 05 17:57:49 2018 +0200 @@ -45,7 +45,7 @@ { IJob* GenericJobUnserializer::UnserializeJob(const Json::Value& source) { - const std::string type = GetString(source, "Type"); + const std::string type = ReadString(source, "Type"); LOG(ERROR) << "Cannot unserialize job of type: " << type; throw OrthancException(ErrorCode_BadFileFormat); @@ -54,7 +54,7 @@ IJobOperation* GenericJobUnserializer::UnserializeOperation(const Json::Value& source) { - const std::string type = GetString(source, "Type"); + const std::string type = ReadString(source, "Type"); if (type == "Log") { @@ -70,11 +70,11 @@ JobOperationValue* GenericJobUnserializer::UnserializeValue(const Json::Value& source) { - const std::string type = GetString(source, "Type"); + const std::string type = ReadString(source, "Type"); if (type == "String") { - return new StringOperationValue(GetString(source, "Content")); + return new StringOperationValue(ReadString(source, "Content")); } else if (type == "Null") {