Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2214:b1d93286b315 | 2215:028214a95194 |
---|---|
846 ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_ParameterOutOfRange); | 846 ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_ParameterOutOfRange); |
847 } | 847 } |
848 } | 848 } |
849 | 849 |
850 | 850 |
851 FindMatcher::FindMatcher(OrthancPluginContext* context, | 851 void FindMatcher::SetupDicom(OrthancPluginContext* context, |
852 const void* query, | 852 const void* query, |
853 uint32_t size) : | 853 uint32_t size) |
854 context_(context), | 854 { |
855 worklist_(NULL) | 855 context_ = context; |
856 { | 856 worklist_ = NULL; |
857 | |
857 matcher_ = OrthancPluginCreateFindMatcher(context_, query, size); | 858 matcher_ = OrthancPluginCreateFindMatcher(context_, query, size); |
858 if (matcher_ == NULL) | 859 if (matcher_ == NULL) |
859 { | 860 { |
860 ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_InternalError); | 861 ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_InternalError); |
861 } | 862 } |