comparison Core/DicomParsing/ParsedDicomFile.h @ 2394:75c779ca948c

fix compilation without Web server
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Aug 2017 16:23:10 +0200
parents 7284093111b0
children e4045b3c9772
comparison
equal deleted inserted replaced
2393:807ddffc0eeb 2394:75c779ca948c
31 **/ 31 **/
32 32
33 33
34 #pragma once 34 #pragma once
35 35
36 #if !defined(ORTHANC_ENABLE_JPEG)
37 # error Macro ORTHANC_ENABLE_JPEG must be defined to use this file
38 #endif
39
40 #if !defined(ORTHANC_ENABLE_PNG)
41 # error Macro ORTHANC_ENABLE_PNG must be defined to use this file
42 #endif
43
44 #if !defined(ORTHANC_ENABLE_CIVETWEB)
45 # error Macro ORTHANC_ENABLE_CIVETWEB must be defined to use this file
46 #endif
47
48 #if !defined(ORTHANC_ENABLE_MONGOOSE)
49 # error Macro ORTHANC_ENABLE_MONGOOSE must be defined to use this file
50 #endif
51
36 #include "../DicomFormat/DicomInstanceHasher.h" 52 #include "../DicomFormat/DicomInstanceHasher.h"
37 #include "../Images/ImageAccessor.h" 53 #include "../Images/ImageAccessor.h"
38 #include "../IDynamicObject.h" 54 #include "../IDynamicObject.h"
39 #include "../RestApi/RestApiOutput.h"
40 #include "../Toolbox.h" 55 #include "../Toolbox.h"
41 56
42 #if !defined(ORTHANC_ENABLE_JPEG) 57 #if ORTHANC_ENABLE_CIVETWEB == 1 || ORTHANC_ENABLE_MONGOOSE == 1
43 # error Macro ORTHANC_ENABLE_JPEG must be defined to use this file 58 # include "../RestApi/RestApiOutput.h"
44 #endif 59 #endif
45 60
46 #if !defined(ORTHANC_ENABLE_PNG)
47 # error Macro ORTHANC_ENABLE_PNG must be defined to use this file
48 #endif
49 61
50 class DcmDataset; 62 class DcmDataset;
51 class DcmFileFormat; 63 class DcmFileFormat;
52 64
53 namespace Orthanc 65 namespace Orthanc
94 106
95 DcmFileFormat& GetDcmtkObject() const; 107 DcmFileFormat& GetDcmtkObject() const;
96 108
97 ParsedDicomFile* Clone(); 109 ParsedDicomFile* Clone();
98 110
111 #if ORTHANC_ENABLE_CIVETWEB == 1 || ORTHANC_ENABLE_MONGOOSE == 1
99 void SendPathValue(RestApiOutput& output, 112 void SendPathValue(RestApiOutput& output,
100 const UriComponents& uri); 113 const UriComponents& uri);
101 114
102 void Answer(RestApiOutput& output); 115 void Answer(RestApiOutput& output);
116 #endif
103 117
104 void Remove(const DicomTag& tag); 118 void Remove(const DicomTag& tag);
105 119
106 // Replace the DICOM tag as a NULL/empty value (e.g. for anonymization) 120 // Replace the DICOM tag as a NULL/empty value (e.g. for anonymization)
107 void Clear(const DicomTag& tag, 121 void Clear(const DicomTag& tag,