Mercurial > hg > orthanc
diff OrthancServer/ParsedDicomFile.h @ 1982:b5d4f9c156ad
Modification of instances can now replace PixelData
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 Apr 2016 10:28:55 +0200 |
parents | 533ff46e944b |
children | 9329ba17a069 |
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.h Fri Apr 22 09:05:06 2016 +0200 +++ b/OrthancServer/ParsedDicomFile.h Fri Apr 22 10:28:55 2016 +0200 @@ -59,6 +59,8 @@ void InvalidateCache(); + bool EmbedContentInternal(const std::string& dataUriScheme); + public: ParsedDicomFile(bool createIdentifiers); // Create a minimal DICOM instance @@ -88,17 +90,24 @@ void Replace(const DicomTag& tag, const std::string& utf8Value, - DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); + bool decodeDataUriScheme, + DicomReplaceMode mode); void Replace(const DicomTag& tag, const Json::Value& value, // Assumed to be encoded with UTF-8 bool decodeDataUriScheme, - DicomReplaceMode mode = DicomReplaceMode_InsertIfAbsent); + DicomReplaceMode mode); void Insert(const DicomTag& tag, const Json::Value& value, // Assumed to be encoded with UTF-8 bool decodeDataUriScheme); + void ReplacePlainString(const DicomTag& tag, + const std::string& utf8Value) + { + Replace(tag, utf8Value, false, DicomReplaceMode_InsertIfAbsent); + } + void RemovePrivateTags() { RemovePrivateTagsInternal(NULL);