diff OrthancServer/OrthancFindRequestHandler.cpp @ 1800:30e97a1f4093 worklists

callback for handling worklists with plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 20 Nov 2015 13:53:20 +0100
parents 4f01c9d73f02
children d364926389e0
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp	Fri Nov 20 12:57:14 2015 +0100
+++ b/OrthancServer/OrthancFindRequestHandler.cpp	Fri Nov 20 13:53:20 2015 +0100
@@ -88,7 +88,7 @@
   }
 
 
-  bool OrthancFindRequestHandler::Handle(DicomFindAnswers& answers,
+  void OrthancFindRequestHandler::Handle(DicomFindAnswers& answers,
                                          const DicomMap& input,
                                          const std::string& remoteIp,
                                          const std::string& remoteAet,
@@ -195,7 +195,7 @@
     context_.GetIndex().FindCandidates(resources, instances, finder);
 
     assert(resources.size() == instances.size());
-    bool finished = true;
+    bool complete = true;
 
     for (size_t i = 0; i < instances.size(); i++)
     {
@@ -207,7 +207,7 @@
         if (maxResults != 0 &&
             answers.GetSize() >= maxResults)
         {
-          finished = false;
+          complete = false;
           break;
         }
         else
@@ -219,6 +219,6 @@
 
     LOG(INFO) << "Number of matching resources: " << answers.GetSize();
 
-    return finished;
+    answers.SetComplete(complete);
   }
 }