diff Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2215:028214a95194

refactoring the worklist sample
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 10 Dec 2016 11:41:17 +0100
parents 95d1d758abb7
children 61e0564d03bb
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Sat Dec 10 11:24:58 2016 +0100
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Sat Dec 10 11:41:17 2016 +0100
@@ -848,12 +848,13 @@
   }
 
 
-  FindMatcher::FindMatcher(OrthancPluginContext*  context,
-                           const void*            query,
-                           uint32_t               size) :
-    context_(context),
-    worklist_(NULL)
+  void FindMatcher::SetupDicom(OrthancPluginContext*  context,
+                               const void*            query,
+                               uint32_t               size)
   {
+    context_ = context;
+    worklist_ = NULL;
+
     matcher_ = OrthancPluginCreateFindMatcher(context_, query, size);
     if (matcher_ == NULL)
     {