Mercurial > hg > orthanc
comparison OrthancServer/ParsedDicomFile.h @ 2380:96b3ec054b69
reorganization in macros
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Aug 2017 16:49:44 +0200 |
parents | b7fba68747f6 |
children |
comparison
equal
deleted
inserted
replaced
2379:4900688827a8 | 2380:96b3ec054b69 |
---|---|
38 #include "../Core/IDynamicObject.h" | 38 #include "../Core/IDynamicObject.h" |
39 #include "../Core/RestApi/RestApiOutput.h" | 39 #include "../Core/RestApi/RestApiOutput.h" |
40 #include "../Core/Toolbox.h" | 40 #include "../Core/Toolbox.h" |
41 #include "ServerEnumerations.h" | 41 #include "ServerEnumerations.h" |
42 | 42 |
43 #if !defined(ORTHANC_ENABLE_JPEG) | |
44 # error Macro ORTHANC_ENABLE_JPEG must be defined to use this file | |
45 #endif | |
46 | |
47 #if !defined(ORTHANC_ENABLE_PNG) | |
48 # error Macro ORTHANC_ENABLE_PNG must be defined to use this file | |
49 #endif | |
50 | |
43 class DcmDataset; | 51 class DcmDataset; |
44 class DcmFileFormat; | 52 class DcmFileFormat; |
45 | 53 |
46 namespace Orthanc | 54 namespace Orthanc |
47 { | 55 { |
142 | 150 |
143 void EmbedContent(const std::string& dataUriScheme); | 151 void EmbedContent(const std::string& dataUriScheme); |
144 | 152 |
145 void EmbedImage(const ImageAccessor& accessor); | 153 void EmbedImage(const ImageAccessor& accessor); |
146 | 154 |
155 #if (ORTHANC_ENABLE_JPEG == 1 && \ | |
156 ORTHANC_ENABLE_PNG == 1) | |
147 void EmbedImage(const std::string& mime, | 157 void EmbedImage(const std::string& mime, |
148 const std::string& content); | 158 const std::string& content); |
159 #endif | |
149 | 160 |
150 Encoding GetEncoding() const; | 161 Encoding GetEncoding() const; |
151 | 162 |
152 // WARNING: This function only sets the encoding, it will not | 163 // WARNING: This function only sets the encoding, it will not |
153 // convert the encoding of the tags. Use "ChangeEncoding()" if need be. | 164 // convert the encoding of the tags. Use "ChangeEncoding()" if need be. |