Mercurial > hg > orthanc
comparison Core/DicomNetworking/DicomUserConnection.h @ 3734:4fc24b69446a storage-commitment
triggering storage commitment scu from REST API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Mar 2020 13:22:02 +0100 |
parents | 115f82775c46 |
children | 3801435e34a1 7f083dfae62b |
comparison
equal
deleted
inserted
replaced
3731:e7ff4f9b34bd | 3734:4fc24b69446a |
---|---|
156 | 156 |
157 bool IsOpen() const; | 157 bool IsOpen() const; |
158 | 158 |
159 bool Echo(); | 159 bool Echo(); |
160 | 160 |
161 void Store(const char* buffer, | 161 void Store(std::string& sopClassUid /* out */, |
162 std::string& sopInstanceUid /* out */, | |
163 const char* buffer, | |
162 size_t size, | 164 size_t size, |
163 const std::string& moveOriginatorAET, | 165 const std::string& moveOriginatorAET, |
164 uint16_t moveOriginatorID); | 166 uint16_t moveOriginatorID); |
165 | 167 |
166 void Store(const char* buffer, | 168 void Store(std::string& sopClassUid /* out */, |
169 std::string& sopInstanceUid /* out */, | |
170 const char* buffer, | |
167 size_t size) | 171 size_t size) |
168 { | 172 { |
169 Store(buffer, size, "", 0); // Not a C-Move | 173 Store(sopClassUid, sopInstanceUid, buffer, size, "", 0); // Not a C-Move |
170 } | 174 } |
171 | 175 |
172 void Store(const std::string& buffer, | 176 void Store(std::string& sopClassUid /* out */, |
177 std::string& sopInstanceUid /* out */, | |
178 const std::string& buffer, | |
173 const std::string& moveOriginatorAET, | 179 const std::string& moveOriginatorAET, |
174 uint16_t moveOriginatorID); | 180 uint16_t moveOriginatorID); |
175 | 181 |
176 void Store(const std::string& buffer) | 182 void Store(std::string& sopClassUid /* out */, |
177 { | 183 std::string& sopInstanceUid /* out */, |
178 Store(buffer, "", 0); // Not a C-Move | 184 const std::string& buffer) |
179 } | 185 { |
180 | 186 Store(sopClassUid, sopInstanceUid, buffer, "", 0); // Not a C-Move |
181 void StoreFile(const std::string& path, | 187 } |
188 | |
189 void StoreFile(std::string& sopClassUid /* out */, | |
190 std::string& sopInstanceUid /* out */, | |
191 const std::string& path, | |
182 const std::string& moveOriginatorAET, | 192 const std::string& moveOriginatorAET, |
183 uint16_t moveOriginatorID); | 193 uint16_t moveOriginatorID); |
184 | 194 |
185 void StoreFile(const std::string& path) | 195 void StoreFile(std::string& sopClassUid /* out */, |
186 { | 196 std::string& sopInstanceUid /* out */, |
187 StoreFile(path, "", 0); // Not a C-Move | 197 const std::string& path) |
198 { | |
199 StoreFile(sopClassUid, sopInstanceUid, path, "", 0); // Not a C-Move | |
188 } | 200 } |
189 | 201 |
190 void Find(DicomFindAnswers& result, | 202 void Find(DicomFindAnswers& result, |
191 ResourceType level, | 203 ResourceType level, |
192 const DicomMap& fields, | 204 const DicomMap& fields, |