Mercurial > hg > orthanc
changeset 3232:01a5b2530b68
thin compatibility wrapper for FromDcmtkBridge::DetectEncoding()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 15 Feb 2019 09:27:10 +0100 |
parents | fc5bc0fe863c |
children | 47fbb0467a62 |
files | Core/DicomParsing/FromDcmtkBridge.h |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/DicomParsing/FromDcmtkBridge.h Thu Feb 14 20:39:49 2019 +0100 +++ b/Core/DicomParsing/FromDcmtkBridge.h Fri Feb 15 09:27:10 2019 +0100 @@ -131,6 +131,14 @@ DcmItem& dataset, Encoding defaultEncoding); + static Encoding DetectEncoding(DcmItem& dataset, + Encoding defaultEncoding) + { + // Compatibility wrapper for Orthanc <= 1.5.4 + bool hasCodeExtensions; // ignored + return DetectEncoding(hasCodeExtensions, dataset, defaultEncoding); + } + static DicomTag Convert(const DcmTag& tag); static DicomTag GetTag(const DcmElement& element);