comparison Core/DicomNetworking/DicomStoreUserConnection.h @ 3882:904575738462 transcoding

implemented IDicomTranscoder::Store()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 May 2020 12:29:33 +0200
parents f23ab7829a8d
children 7a5fa8f307e9
comparison
equal deleted inserted replaced
3881:f23ab7829a8d 3882:904575738462
39 #include <boost/noncopyable.hpp> 39 #include <boost/noncopyable.hpp>
40 #include <set> 40 #include <set>
41 #include <stdint.h> // For uint8_t 41 #include <stdint.h> // For uint8_t
42 42
43 43
44 class DcmDataset; 44 class DcmFileFormat;
45 45
46 namespace Orthanc 46 namespace Orthanc
47 { 47 {
48 /** 48 /**
49 49
83 bool proposeRetiredBigEndian_; 83 bool proposeRetiredBigEndian_;
84 84
85 // Return "false" if there is not enough room remaining in the association 85 // Return "false" if there is not enough room remaining in the association
86 bool ProposeStorageClass(const std::string& sopClassUid, 86 bool ProposeStorageClass(const std::string& sopClassUid,
87 const std::set<DicomTransferSyntax>& syntaxes); 87 const std::set<DicomTransferSyntax>& syntaxes);
88
89 void LookupParameters(std::string& sopClassUid,
90 std::string& sopInstanceUid,
91 DcmDataset& dataset);
92 88
93 bool LookupPresentationContext(uint8_t& presentationContextId, 89 bool LookupPresentationContext(uint8_t& presentationContextId,
94 const std::string& sopClassUid, 90 const std::string& sopClassUid,
95 DicomTransferSyntax transferSyntax); 91 DicomTransferSyntax transferSyntax);
96 92
139 void RegisterStorageClass(const std::string& sopClassUid, 135 void RegisterStorageClass(const std::string& sopClassUid,
140 DicomTransferSyntax syntax); 136 DicomTransferSyntax syntax);
141 137
142 void Store(std::string& sopClassUid, 138 void Store(std::string& sopClassUid,
143 std::string& sopInstanceUid, 139 std::string& sopInstanceUid,
144 DcmDataset& dataset, 140 DcmFileFormat& dicom,
145 const std::string& moveOriginatorAET, 141 const std::string& moveOriginatorAET,
146 uint16_t moveOriginatorID); 142 uint16_t moveOriginatorID);
147 143
148 void Store(std::string& sopClassUid, 144 void Store(std::string& sopClassUid,
149 std::string& sopInstanceUid, 145 std::string& sopInstanceUid,
152 const std::string& moveOriginatorAET, 148 const std::string& moveOriginatorAET,
153 uint16_t moveOriginatorID); 149 uint16_t moveOriginatorID);
154 150
155 void Store(std::string& sopClassUid, 151 void Store(std::string& sopClassUid,
156 std::string& sopInstanceUid, 152 std::string& sopInstanceUid,
157 DcmDataset& dataset) 153 DcmFileFormat& dicom)
158 { 154 {
159 Store(sopClassUid, sopInstanceUid, dataset, "", 0); // Not a C-Move 155 Store(sopClassUid, sopInstanceUid, dicom, "", 0); // Not a C-Move
160 } 156 }
161 157
162 void Store(std::string& sopClassUid, 158 void Store(std::string& sopClassUid,
163 std::string& sopInstanceUid, 159 std::string& sopInstanceUid,
164 const void* buffer, 160 const void* buffer,
165 size_t size) 161 size_t size)
166 { 162 {
167 Store(sopClassUid, sopInstanceUid, buffer, size, "", 0); // Not a C-Move 163 Store(sopClassUid, sopInstanceUid, buffer, size, "", 0); // Not a C-Move
168 } 164 }
169 165
170 bool LookupTranscoding(std::set<DicomTransferSyntax>& acceptedSyntaxes, 166 void LookupParameters(std::string& sopClassUid,
167 std::string& sopInstanceUid,
168 DicomTransferSyntax& transferSyntax,
169 DcmFileFormat& dicom);
170
171 void LookupTranscoding(std::set<DicomTransferSyntax>& acceptedSyntaxes,
171 const std::string& sopClassUid, 172 const std::string& sopClassUid,
172 DicomTransferSyntax sourceSyntax); 173 DicomTransferSyntax sourceSyntax);
173 }; 174 };
174 } 175 }