comparison OrthancFramework/Sources/DicomParsing/ParsedDicomFile.h @ 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 0034f855c023
children d9473bd5ed43
comparison
equal deleted inserted replaced
4295:90f91b78d708 4296:3b70a2e6a06c
135 135
136 explicit ParsedDicomFile(DcmDataset& dicom); // This clones the DCMTK object 136 explicit ParsedDicomFile(DcmDataset& dicom); // This clones the DCMTK object
137 137
138 explicit ParsedDicomFile(DcmFileFormat& dicom); // This clones the DCMTK object 138 explicit ParsedDicomFile(DcmFileFormat& dicom); // This clones the DCMTK object
139 139
140 static ParsedDicomFile* AcquireDcmtkObject(DcmFileFormat* dicom) // No clone here 140 static ParsedDicomFile* AcquireDcmtkObject(DcmFileFormat* dicom);
141 { 141
142 return new ParsedDicomFile(dicom); 142 DcmFileFormat& GetDcmtkObject();
143 }
144
145 DcmFileFormat& GetDcmtkObject()
146 {
147 return GetDcmtkObjectConst();
148 }
149 143
150 // The "ParsedDicomFile" object cannot be used after calling this method 144 // The "ParsedDicomFile" object cannot be used after calling this method
151 DcmFileFormat* ReleaseDcmtkObject(); 145 DcmFileFormat* ReleaseDcmtkObject();
152 146
153 ParsedDicomFile* Clone(bool keepSopInstanceUid) const; 147 ParsedDicomFile* Clone(bool keepSopInstanceUid) const;
188 182
189 // Cannot be applied to private tags 183 // Cannot be applied to private tags
190 void SetIfAbsent(const DicomTag& tag, 184 void SetIfAbsent(const DicomTag& tag,
191 const std::string& utf8Value); 185 const std::string& utf8Value);
192 186
193 void RemovePrivateTags() 187 void RemovePrivateTags();
194 { 188
195 RemovePrivateTagsInternal(NULL); 189 void RemovePrivateTags(const std::set<DicomTag>& toKeep);
196 }
197
198 void RemovePrivateTags(const std::set<DicomTag>& toKeep)
199 {
200 RemovePrivateTagsInternal(&toKeep);
201 }
202 190
203 // WARNING: This function handles the decoding of strings to UTF8 191 // WARNING: This function handles the decoding of strings to UTF8
204 bool GetTagValue(std::string& value, 192 bool GetTagValue(std::string& value,
205 const DicomTag& tag) const; 193 const DicomTag& tag) const;
206 194