Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Plugins/Engine/PluginsEnumerations.cpp Thu Oct 22 19:00:32 2015 +0200 +++ b/Plugins/Engine/PluginsEnumerations.cpp Thu Oct 22 19:53:51 2015 +0200 @@ -210,6 +210,25 @@ } + DicomToJsonFormat Convert(OrthancPluginDicomToJsonFormat format) + { + switch (format) + { + case OrthancPluginDicomToJsonFormat_Full: + return DicomToJsonFormat_Full; + + case OrthancPluginDicomToJsonFormat_Short: + return DicomToJsonFormat_Short; + + case OrthancPluginDicomToJsonFormat_Simple: + return DicomToJsonFormat_Simple; + + default: + throw OrthancException(ErrorCode_ParameterOutOfRange); + } + } + + #if !defined(ORTHANC_ENABLE_DCMTK) || ORTHANC_ENABLE_DCMTK != 0 DcmEVR Convert(OrthancPluginValueRepresentation vr) {