Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp @ 4273:0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 12:24:50 +0100 |
parents | afad57ac30ef |
children | 9279de56a405 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp Tue Nov 03 07:19:33 2020 +0100 +++ b/OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp Tue Nov 03 12:24:50 2020 +0100 @@ -1733,4 +1733,42 @@ return DicomImageDecoder::Decode(*GetDcmtkObjectConst().getDataset(), frame); } } + + +#if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1 + // Alias for binary compatibility with Orthanc Framework 1.7.2 => don't use it anymore + void ParsedDicomFile::DatasetToJson(Json::Value& target, + DicomToJsonFormat format, + DicomToJsonFlags flags, + unsigned int maxStringLength) + { + return const_cast<const ParsedDicomFile&>(*this).DatasetToJson(target, format, flags, maxStringLength); + } + + DcmFileFormat& ParsedDicomFile::GetDcmtkObject() const + { + return const_cast<ParsedDicomFile&>(*this).GetDcmtkObject(); + } + + void ParsedDicomFile::Apply(ITagVisitor& visitor) + { + const_cast<const ParsedDicomFile&>(*this).Apply(visitor); + } + + ParsedDicomFile* ParsedDicomFile::Clone(bool keepSopInstanceUid) + { + return const_cast<const ParsedDicomFile&>(*this).Clone(keepSopInstanceUid); + } + + bool ParsedDicomFile::LookupTransferSyntax(std::string& result) + { + return const_cast<const ParsedDicomFile&>(*this).LookupTransferSyntax(result); + } + + bool ParsedDicomFile::GetTagValue(std::string& value, + const DicomTag& tag) + { + return const_cast<const ParsedDicomFile&>(*this).GetTagValue(value, tag); + } +#endif }