comparison OrthancServer/ServerJobs/ResourceModificationJob.cpp @ 2663:228e2783ce83 jobs

some jobs might not be serializable
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Jun 2018 18:18:02 +0200
parents e1893d31652a
children a21b244efb37
comparison
equal deleted inserted replaced
2662:47d812308d63 2663:228e2783ce83
271 271
272 value["IsAnonymization"] = isAnonymization_; 272 value["IsAnonymization"] = isAnonymization_;
273 } 273 }
274 274
275 275
276 void ResourceModificationJob::Serialize(Json::Value& value) 276 bool ResourceModificationJob::Serialize(Json::Value& value)
277 { 277 {
278 SetOfInstancesJob::Serialize(value); 278 SetOfInstancesJob::Serialize(value);
279 279
280 Json::Value tmp; 280 Json::Value tmp;
281 modification_->Serialize(tmp); 281 modification_->Serialize(tmp);
282 value["Modification"] = tmp; 282 value["Modification"] = tmp;
283
284 return true;
283 } 285 }
284 } 286 }