Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.h @ 4562:e19f11e08226 db-changes
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Mar 2021 15:37:53 +0100 |
parents | 02510325d869 |
children | bb1c365f9e44 |
comparison
equal
deleted
inserted
replaced
4561:02510325d869 | 4562:e19f11e08226 |
---|---|
179 | 179 |
180 void DeleteChanges(); | 180 void DeleteChanges(); |
181 | 181 |
182 void DeleteExportedResources(); | 182 void DeleteExportedResources(); |
183 | 183 |
184 void GetResourceStatistics(/* out */ ResourceType& type, | |
185 /* out */ uint64_t& diskSize, | |
186 /* out */ uint64_t& uncompressedSize, | |
187 /* out */ unsigned int& countStudies, | |
188 /* out */ unsigned int& countSeries, | |
189 /* out */ unsigned int& countInstances, | |
190 /* out */ uint64_t& dicomDiskSize, | |
191 /* out */ uint64_t& dicomUncompressedSize, | |
192 const std::string& publicId); | |
193 | |
194 void LookupIdentifierExact(std::vector<std::string>& result, | |
195 ResourceType level, | |
196 const DicomTag& tag, | |
197 const std::string& value); | |
198 | |
199 StoreStatus AddAttachment(const FileInfo& attachment, | 184 StoreStatus AddAttachment(const FileInfo& attachment, |
200 const std::string& publicId); | 185 const std::string& publicId); |
201 | 186 |
202 void DeleteAttachment(const std::string& publicId, | 187 void DeleteAttachment(const std::string& publicId, |
203 FileContentType type); | 188 FileContentType type); |
204 | 189 |
205 void SetGlobalProperty(GlobalProperty property, | 190 void SetGlobalProperty(GlobalProperty property, |
206 const std::string& value); | 191 const std::string& value); |
207 | |
208 bool LookupGlobalProperty(std::string& value, | |
209 GlobalProperty property); | |
210 | |
211 std::string GetGlobalProperty(GlobalProperty property, | |
212 const std::string& defaultValue); | |
213 | |
214 bool GetMainDicomTags(DicomMap& result, | |
215 const std::string& publicId, | |
216 ResourceType expectedType, | |
217 ResourceType levelOfInterest); | |
218 | 192 |
219 // Only applicable at the instance level | 193 // Only applicable at the instance level |
220 bool GetAllMainDicomTags(DicomMap& result, | 194 bool GetAllMainDicomTags(DicomMap& result, |
221 const std::string& instancePublicId); | 195 const std::string& instancePublicId); |
222 | 196 |
274 | 248 |
275 /** | 249 /** |
276 * Read-only methods from "IDatabaseWrapper" | 250 * Read-only methods from "IDatabaseWrapper" |
277 **/ | 251 **/ |
278 | 252 |
253 void ApplyLookupResources(std::list<std::string>& resourcesId, | |
254 std::list<std::string>* instancesId, // Can be NULL if not needed | |
255 const std::vector<DatabaseConstraint>& lookup, | |
256 ResourceType queryLevel, | |
257 size_t limit) | |
258 { | |
259 return db_.ApplyLookupResources(resourcesId, instancesId, lookup, queryLevel, limit); | |
260 } | |
261 | |
279 void GetAllMetadata(std::map<MetadataType, std::string>& target, | 262 void GetAllMetadata(std::map<MetadataType, std::string>& target, |
280 int64_t id) | 263 int64_t id) |
281 { | 264 { |
282 db_.GetAllMetadata(target, id); | 265 db_.GetAllMetadata(target, id); |
283 } | 266 } |
386 FileContentType contentType) | 369 FileContentType contentType) |
387 { | 370 { |
388 return db_.LookupAttachment(attachment, id, contentType); | 371 return db_.LookupAttachment(attachment, id, contentType); |
389 } | 372 } |
390 | 373 |
374 bool LookupGlobalProperty(std::string& target, | |
375 GlobalProperty property) | |
376 { | |
377 return db_.LookupGlobalProperty(target, property); | |
378 } | |
379 | |
391 bool LookupMetadata(std::string& target, | 380 bool LookupMetadata(std::string& target, |
392 int64_t id, | 381 int64_t id, |
393 MetadataType type) | 382 MetadataType type) |
394 { | 383 { |
395 return db_.LookupMetadata(target, id, type); | 384 return db_.LookupMetadata(target, id, type); |
517 const std::string& publicId, | 506 const std::string& publicId, |
518 ResourceType expectedType); | 507 ResourceType expectedType); |
519 | 508 |
520 bool LookupParent(std::string& target, | 509 bool LookupParent(std::string& target, |
521 const std::string& publicId); | 510 const std::string& publicId); |
511 | |
512 void GetResourceStatistics(/* out */ ResourceType& type, | |
513 /* out */ uint64_t& diskSize, | |
514 /* out */ uint64_t& uncompressedSize, | |
515 /* out */ unsigned int& countStudies, | |
516 /* out */ unsigned int& countSeries, | |
517 /* out */ unsigned int& countInstances, | |
518 /* out */ uint64_t& dicomDiskSize, | |
519 /* out */ uint64_t& dicomUncompressedSize, | |
520 const std::string& publicId); | |
521 | |
522 void LookupIdentifierExact(std::vector<std::string>& result, | |
523 ResourceType level, | |
524 const DicomTag& tag, | |
525 const std::string& value); | |
526 | |
527 bool LookupGlobalProperty(std::string& value, | |
528 GlobalProperty property); | |
529 | |
530 std::string GetGlobalProperty(GlobalProperty property, | |
531 const std::string& defaultValue); | |
532 | |
533 bool GetMainDicomTags(DicomMap& result, | |
534 const std::string& publicId, | |
535 ResourceType expectedType, | |
536 ResourceType levelOfInterest); | |
522 }; | 537 }; |
523 } | 538 } |