comparison Plugin/Plugin.cpp @ 230:cce89307af28

replacing GdcmDecoder/OrthancImageWrapper.h by OrthancPluginCppWrapper.h
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 May 2020 12:06:33 +0200
parents 0f9d183f685d
children 7097d0eaac76
comparison
equal deleted inserted replaced
229:967ae255a58f 230:cce89307af28
26 26
27 #include <Core/DicomFormat/DicomMap.h> 27 #include <Core/DicomFormat/DicomMap.h>
28 #include <Core/OrthancException.h> 28 #include <Core/OrthancException.h>
29 #include <Core/SystemToolbox.h> 29 #include <Core/SystemToolbox.h>
30 #include <Core/Toolbox.h> 30 #include <Core/Toolbox.h>
31 #include <Plugins/Samples/Common/OrthancPluginCppWrapper.h>
31 #include <Plugins/Samples/GdcmDecoder/GdcmDecoderCache.h> 32 #include <Plugins/Samples/GdcmDecoder/GdcmDecoderCache.h>
32 33
33 #include <boost/thread.hpp> 34 #include <boost/thread.hpp>
34 #include <boost/lexical_cast.hpp> 35 #include <boost/lexical_cast.hpp>
35 #include <EmbeddedResources.h> 36 #include <EmbeddedResources.h>
566 { 567 {
567 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) 568 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)
568 { 569 {
569 using namespace OrthancPlugins; 570 using namespace OrthancPlugins;
570 571
572 OrthancPlugins::SetGlobalContext(context);
571 context_ = context; 573 context_ = context;
572 assert(DisplayPerformanceWarning()); 574 assert(DisplayPerformanceWarning());
573 OrthancPluginLogWarning(context_, "Initializing the Web viewer"); 575 OrthancPluginLogWarning(context_, "Initializing the Web viewer");
574 576
575 577