Mercurial > hg > orthanc
comparison Core/JobsEngine/Operations/JobOperationValues.cpp @ 2655:c196d76cb8fa jobs
serialization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Jun 2018 17:57:49 +0200 |
parents | 83ac5a05ce84 |
children | 4e43e67f8ecf |
comparison
equal
deleted
inserted
replaced
2654:761031029aa9 | 2655:c196d76cb8fa |
---|---|
119 target.append(tmp); | 119 target.append(tmp); |
120 } | 120 } |
121 } | 121 } |
122 | 122 |
123 | 123 |
124 JobOperationValues* Unserialize(IJobUnserializer& unserializer, | 124 JobOperationValues* JobOperationValues::Unserialize(IJobUnserializer& unserializer, |
125 const Json::Value& source) | 125 const Json::Value& source) |
126 { | 126 { |
127 if (source.type() != Json::arrayValue) | 127 if (source.type() != Json::arrayValue) |
128 { | 128 { |
129 throw OrthancException(ErrorCode_BadFileFormat); | 129 throw OrthancException(ErrorCode_BadFileFormat); |
130 } | 130 } |