Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/DicomMoveScuJob.cpp @ 4206:171af1567473
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Sep 2020 20:49:15 +0200 |
parents | d962a2996637 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4205:d962a2996637 | 4206:171af1567473 |
---|---|
215 | 215 |
216 DicomMoveScuJob::DicomMoveScuJob(ServerContext& context, | 216 DicomMoveScuJob::DicomMoveScuJob(ServerContext& context, |
217 const Json::Value& serialized) : | 217 const Json::Value& serialized) : |
218 SetOfCommandsJob(new Unserializer(*this), serialized), | 218 SetOfCommandsJob(new Unserializer(*this), serialized), |
219 context_(context), | 219 context_(context), |
220 parameters_(DicomAssociationParameters::UnserializeJob(serialized)), | |
221 targetAet_(SerializationToolbox::ReadString(serialized, TARGET_AET)), | |
220 query_(Json::arrayValue) | 222 query_(Json::arrayValue) |
221 { | 223 { |
222 parameters_ = DicomAssociationParameters::UnserializeJob(serialized); | |
223 targetAet_ = SerializationToolbox::ReadString(serialized, TARGET_AET); | |
224 | |
225 if (serialized.isMember(QUERY) && | 224 if (serialized.isMember(QUERY) && |
226 serialized[QUERY].type() == Json::arrayValue) | 225 serialized[QUERY].type() == Json::arrayValue) |
227 { | 226 { |
228 query_ = serialized[QUERY]; | 227 query_ = serialized[QUERY]; |
229 } | 228 } |