comparison Plugin/DecodedImageAdapter.h @ 102:21123729ac71 refactoring

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2015 11:02:50 +0100
parents 46ec13a1177c
children 3809121c3290
comparison
equal deleted inserted replaced
101:2932473a9b19 102:21123729ac71
24 24
25 #include <orthanc/OrthancCPlugin.h> 25 #include <orthanc/OrthancCPlugin.h>
26 #include <stdint.h> 26 #include <stdint.h>
27 #include <json/value.h> 27 #include <json/value.h>
28 28
29 #include "../Orthanc/Plugins/Samples/GdcmDecoder/GdcmDecoderCache.h"
30 #include "../Orthanc/Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h" 29 #include "../Orthanc/Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h"
31 30
32 31
33 namespace OrthancPlugins 32 namespace OrthancPlugins
34 { 33 {
58 static bool EncodeUsingJpeg(Json::Value& result, 57 static bool EncodeUsingJpeg(Json::Value& result,
59 OrthancImageWrapper& image, 58 OrthancImageWrapper& image,
60 uint8_t quality /* between 0 and 100 */); 59 uint8_t quality /* between 0 and 100 */);
61 60
62 OrthancPluginContext* context_; 61 OrthancPluginContext* context_;
63 GdcmDecoderCache decoderCache_;
64 62
65 public: 63 public:
66 DecodedImageAdapter(OrthancPluginContext* context) : context_(context) 64 DecodedImageAdapter(OrthancPluginContext* context) : context_(context)
67 { 65 {
68 } 66 }
69 67
70 virtual bool Create(std::string& content, 68 virtual bool Create(std::string& content,
71 const std::string& uri); 69 const std::string& uri);
72
73 GdcmDecoderCache& GetDecoderCache()
74 {
75 return decoderCache_;
76 }
77 }; 70 };
78 } 71 }