Mercurial > hg > orthanc
comparison Core/DicomParsing/ParsedDicomFile.h @ 3912:7610af1532c3 transcoding
prototyping automated transcoding of incoming DICOM files
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 May 2020 13:43:50 +0200 |
parents | 4922bdd046dd |
children | aae045f802f4 |
comparison
equal
deleted
inserted
replaced
3911:0ef7f4528be2 | 3912:7610af1532c3 |
---|---|
100 | 100 |
101 void InvalidateCache(); | 101 void InvalidateCache(); |
102 | 102 |
103 bool EmbedContentInternal(const std::string& dataUriScheme); | 103 bool EmbedContentInternal(const std::string& dataUriScheme); |
104 | 104 |
105 ParsedDicomFile(DcmFileFormat* dicom); // This takes ownership (no clone) | |
106 | |
105 public: | 107 public: |
106 ParsedDicomFile(bool createIdentifiers); // Create a minimal DICOM instance | 108 ParsedDicomFile(bool createIdentifiers); // Create a minimal DICOM instance |
107 | 109 |
108 ParsedDicomFile(const DicomMap& map, | 110 ParsedDicomFile(const DicomMap& map, |
109 Encoding defaultEncoding, | 111 Encoding defaultEncoding, |
112 ParsedDicomFile(const void* content, | 114 ParsedDicomFile(const void* content, |
113 size_t size); | 115 size_t size); |
114 | 116 |
115 ParsedDicomFile(const std::string& content); | 117 ParsedDicomFile(const std::string& content); |
116 | 118 |
117 ParsedDicomFile(DcmDataset& dicom); | 119 ParsedDicomFile(DcmDataset& dicom); // This clones the DCMTK object |
118 | 120 |
119 ParsedDicomFile(DcmFileFormat& dicom); | 121 ParsedDicomFile(DcmFileFormat& dicom); // This clones the DCMTK object |
122 | |
123 static ParsedDicomFile* AcquireDcmtkObject(DcmFileFormat* dicom) // No clone here | |
124 { | |
125 return new ParsedDicomFile(dicom); | |
126 } | |
120 | 127 |
121 DcmFileFormat& GetDcmtkObject() const; | 128 DcmFileFormat& GetDcmtkObject() const; |
122 | 129 |
123 ParsedDicomFile* Clone(bool keepSopInstanceUid); | 130 ParsedDicomFile* Clone(bool keepSopInstanceUid); |
124 | 131 |