Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi.cpp @ 403:c3e9b74aab7a
log
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Apr 2013 12:05:21 +0200 |
parents | d2c69150a979 |
children | 47d63c941902 |
comparison
equal
deleted
inserted
replaced
402:d2c69150a979 | 403:c3e9b74aab7a |
---|---|
264 } | 264 } |
265 | 265 |
266 std::list<std::string> instances; | 266 std::list<std::string> instances; |
267 if (request.isString()) | 267 if (request.isString()) |
268 { | 268 { |
269 LOG(INFO) << "Sending resource " << request.asString() << " to modality " << remote; | |
269 context.GetIndex().LogExportedResource(request.asString(), remote); | 270 context.GetIndex().LogExportedResource(request.asString(), remote); |
270 context.GetIndex().GetChildInstances(instances, request.asString()); | 271 context.GetIndex().GetChildInstances(instances, request.asString()); |
271 } | 272 } |
272 else if (request.isArray()) | 273 else if (request.isArray()) |
273 { | 274 { |
282 if (!Toolbox::IsSHA1(stripped)) | 283 if (!Toolbox::IsSHA1(stripped)) |
283 { | 284 { |
284 return; | 285 return; |
285 } | 286 } |
286 | 287 |
288 LOG(INFO) << "Sending resource " << stripped << " to modality " << remote; | |
287 context.GetIndex().LogExportedResource(stripped, remote); | 289 context.GetIndex().LogExportedResource(stripped, remote); |
288 | 290 |
289 std::list<std::string> tmp; | 291 std::list<std::string> tmp; |
290 context.GetIndex().GetChildInstances(tmp, stripped); | 292 context.GetIndex().GetChildInstances(tmp, stripped); |
291 instances.merge(tmp); | 293 instances.merge(tmp); |