Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp @ 4296:3b70a2e6a06c
moving inline methods to source files for ABI compatibility
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 15:52:28 +0100 |
parents | 9279de56a405 |
children | 785a2713323e |
comparison
equal
deleted
inserted
replaced
4295:90f91b78d708 | 4296:3b70a2e6a06c |
---|---|
668 { | 668 { |
669 ReplacePlainString(tag, utf8Value); | 669 ReplacePlainString(tag, utf8Value); |
670 } | 670 } |
671 } | 671 } |
672 | 672 |
673 void ParsedDicomFile::RemovePrivateTags() | |
674 { | |
675 RemovePrivateTagsInternal(NULL); | |
676 } | |
677 | |
678 void ParsedDicomFile::RemovePrivateTags(const std::set<DicomTag> &toKeep) | |
679 { | |
680 RemovePrivateTagsInternal(&toKeep); | |
681 } | |
682 | |
673 | 683 |
674 static bool CanReplaceProceed(DcmDataset& dicom, | 684 static bool CanReplaceProceed(DcmDataset& dicom, |
675 const DcmTagKey& tag, | 685 const DcmTagKey& tag, |
676 DicomReplaceMode mode) | 686 DicomReplaceMode mode) |
677 { | 687 { |
1147 { | 1157 { |
1148 return *pimpl_->file_; | 1158 return *pimpl_->file_; |
1149 } | 1159 } |
1150 } | 1160 } |
1151 | 1161 |
1162 Orthanc::ParsedDicomFile *Orthanc::ParsedDicomFile::AcquireDcmtkObject(DcmFileFormat *dicom) // No clone here | |
1163 { | |
1164 return new ParsedDicomFile(dicom); | |
1165 } | |
1166 | |
1167 DcmFileFormat &ParsedDicomFile::GetDcmtkObject() | |
1168 { | |
1169 return GetDcmtkObjectConst(); | |
1170 } | |
1171 | |
1152 | 1172 |
1153 DcmFileFormat* ParsedDicomFile::ReleaseDcmtkObject() | 1173 DcmFileFormat* ParsedDicomFile::ReleaseDcmtkObject() |
1154 { | 1174 { |
1155 if (pimpl_->file_.get() == NULL) | 1175 if (pimpl_->file_.get() == NULL) |
1156 { | 1176 { |
1738 } | 1758 } |
1739 | 1759 |
1740 | 1760 |
1741 #if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1 | 1761 #if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1 |
1742 // Alias for binary compatibility with Orthanc Framework 1.7.2 => don't use it anymore | 1762 // Alias for binary compatibility with Orthanc Framework 1.7.2 => don't use it anymore |
1743 void ParsedDicomFile::DatasetToJson(Json::Value& target, | 1763 void ParsedDicomFile::DatasetToJson(Json::Value& target, |
1744 DicomToJsonFormat format, | 1764 DicomToJsonFormat format, |
1745 DicomToJsonFlags flags, | 1765 DicomToJsonFlags flags, |
1746 unsigned int maxStringLength) | 1766 unsigned int maxStringLength) |
1747 { | 1767 { |
1748 return const_cast<const ParsedDicomFile&>(*this).DatasetToJson(target, format, flags, maxStringLength); | 1768 return const_cast<const ParsedDicomFile&>(*this).DatasetToJson(target, format, flags, maxStringLength); |