comparison Plugins/Engine/PluginsEnumerations.cpp @ 1740:5e99a70b0635

DicomToJson callable from plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 22 Oct 2015 19:53:51 +0200
parents 2f2e2ec17bc4
children 51db4a25a741
comparison
equal deleted inserted replaced
1739:df331354cea2 1740:5e99a70b0635
208 return FileContentType_Unknown; 208 return FileContentType_Unknown;
209 } 209 }
210 } 210 }
211 211
212 212
213 DicomToJsonFormat Convert(OrthancPluginDicomToJsonFormat format)
214 {
215 switch (format)
216 {
217 case OrthancPluginDicomToJsonFormat_Full:
218 return DicomToJsonFormat_Full;
219
220 case OrthancPluginDicomToJsonFormat_Short:
221 return DicomToJsonFormat_Short;
222
223 case OrthancPluginDicomToJsonFormat_Simple:
224 return DicomToJsonFormat_Simple;
225
226 default:
227 throw OrthancException(ErrorCode_ParameterOutOfRange);
228 }
229 }
230
231
213 #if !defined(ORTHANC_ENABLE_DCMTK) || ORTHANC_ENABLE_DCMTK != 0 232 #if !defined(ORTHANC_ENABLE_DCMTK) || ORTHANC_ENABLE_DCMTK != 0
214 DcmEVR Convert(OrthancPluginValueRepresentation vr) 233 DcmEVR Convert(OrthancPluginValueRepresentation vr)
215 { 234 {
216 switch (vr) 235 switch (vr)
217 { 236 {