comparison Core/DicomParsing/ParsedDicomFile.h @ 3956:6e14f2da7c7e

integration transcoding->mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 May 2020 16:42:44 +0200
parents aae045f802f4
children f9863630ec7f
comparison
equal deleted inserted replaced
3892:fe0e4ef52a72 3956:6e14f2da7c7e
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;
129
130 // The "ParsedDicomFile" object cannot be used after calling this method
131 DcmFileFormat* ReleaseDcmtkObject();
122 132
123 ParsedDicomFile* Clone(bool keepSopInstanceUid); 133 ParsedDicomFile* Clone(bool keepSopInstanceUid);
124 134
125 #if ORTHANC_ENABLE_CIVETWEB == 1 || ORTHANC_ENABLE_MONGOOSE == 1 135 #if ORTHANC_ENABLE_CIVETWEB == 1 || ORTHANC_ENABLE_MONGOOSE == 1
126 void SendPathValue(RestApiOutput& output, 136 void SendPathValue(RestApiOutput& output,