Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp @ 4205:d962a2996637
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Sep 2020 17:58:19 +0200 |
parents | a4664f169cd7 |
children | 1661544ea94d |
comparison
equal
deleted
inserted
replaced
4204:318c16cfccab | 4205:d962a2996637 |
---|---|
327 call.GetOutput().AnswerJson(result); | 327 call.GetOutput().AnswerJson(result); |
328 } | 328 } |
329 | 329 |
330 | 330 |
331 static void CopyTagIfExists(DicomMap& target, | 331 static void CopyTagIfExists(DicomMap& target, |
332 ParsedDicomFile& source, | 332 const ParsedDicomFile& source, |
333 const DicomTag& tag) | 333 const DicomTag& tag) |
334 { | 334 { |
335 std::string tmp; | 335 std::string tmp; |
336 if (source.GetTagValue(tmp, tag)) | 336 if (source.GetTagValue(tmp, tag)) |
337 { | 337 { |
522 ServerContext& context_; | 522 ServerContext& context_; |
523 SharedArchive::Accessor accessor_; | 523 SharedArchive::Accessor accessor_; |
524 QueryRetrieveHandler* handler_; | 524 QueryRetrieveHandler* handler_; |
525 | 525 |
526 public: | 526 public: |
527 QueryAccessor(RestApiCall& call) : | 527 explicit QueryAccessor(RestApiCall& call) : |
528 context_(OrthancRestApi::GetContext(call)), | 528 context_(OrthancRestApi::GetContext(call)), |
529 accessor_(context_.GetQueryRetrieveArchive(), call.GetUriComponent("id", "")), | 529 accessor_(context_.GetQueryRetrieveArchive(), call.GetUriComponent("id", "")), |
530 handler_(NULL) | 530 handler_(NULL) |
531 { | 531 { |
532 if (accessor_.IsValid()) | 532 if (accessor_.IsValid()) |
1019 * DICOM C-Move SCU | 1019 * DICOM C-Move SCU |
1020 ***************************************************************************/ | 1020 ***************************************************************************/ |
1021 | 1021 |
1022 static void DicomMove(RestApiPostCall& call) | 1022 static void DicomMove(RestApiPostCall& call) |
1023 { | 1023 { |
1024 ServerContext& context = OrthancRestApi::GetContext(call); | 1024 const ServerContext& context = OrthancRestApi::GetContext(call); |
1025 | 1025 |
1026 Json::Value request; | 1026 Json::Value request; |
1027 | 1027 |
1028 if (!call.ParseJsonRequest(request) || | 1028 if (!call.ParseJsonRequest(request) || |
1029 request.type() != Json::objectValue || | 1029 request.type() != Json::objectValue || |