Mercurial > hg > orthanc
comparison Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp @ 2425:59b7aa77a8da
compatibility of GDCM sample with Orthanc SDK <= 1.3.0
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Oct 2017 12:44:58 +0200 |
parents | 7ef9207f31d4 |
children | 23f5ff059ce2 |
comparison
equal
deleted
inserted
replaced
2424:7ef9207f31d4 | 2425:59b7aa77a8da |
---|---|
28 #include <gdcmImageChangePlanarConfiguration.h> | 28 #include <gdcmImageChangePlanarConfiguration.h> |
29 #include <gdcmImageChangePhotometricInterpretation.h> | 29 #include <gdcmImageChangePhotometricInterpretation.h> |
30 #include <stdexcept> | 30 #include <stdexcept> |
31 #include <boost/iostreams/stream.hpp> | 31 #include <boost/iostreams/stream.hpp> |
32 #include <boost/iostreams/device/array.hpp> | 32 #include <boost/iostreams/device/array.hpp> |
33 | |
34 | |
35 // This is for compatibility with Orthanc SDK <= 1.3.0 | |
36 #if !defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) | |
37 #define ORTHANC_PLUGINS_VERSION_IS_ABOVE(major, minor, revision) \ | |
38 (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER > major || \ | |
39 (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER == major && \ | |
40 (ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER > minor || \ | |
41 (ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER == minor && \ | |
42 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER >= revision)))) | |
43 #endif | |
33 | 44 |
34 | 45 |
35 namespace OrthancPlugins | 46 namespace OrthancPlugins |
36 { | 47 { |
37 struct GdcmImageDecoder::PImpl | 48 struct GdcmImageDecoder::PImpl |