comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3934:0b59e2706366 transcoding

guard on SDK version in OrthancPlugins::MemoryBuffer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 15 May 2020 15:15:58 +0200
parents b99acc213937
children 3b0c555f16a3
comparison
equal deleted inserted replaced
3933:f67b48833a4f 3934:0b59e2706366
144 bool CheckHttp(OrthancPluginErrorCode code); 144 bool CheckHttp(OrthancPluginErrorCode code);
145 145
146 public: 146 public:
147 MemoryBuffer(); 147 MemoryBuffer();
148 148
149 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 7, 0)
150 // This constructor makes a copy of the given buffer in the memory
151 // handled by the Orthanc core
149 MemoryBuffer(const void* buffer, 152 MemoryBuffer(const void* buffer,
150 size_t size); 153 size_t size);
154 #endif
151 155
152 ~MemoryBuffer() 156 ~MemoryBuffer()
153 { 157 {
154 Clear(); 158 Clear();
155 } 159 }