#include <storage_interface.h>
Definition at line 93 of file storage_interface.h.
◆ ~storage_interface()
| virtual kcenon::pacs::storage::storage_interface::~storage_interface |
( |
| ) |
|
|
virtualdefault |
◆ storage_interface() [1/3]
| kcenon::pacs::storage::storage_interface::storage_interface |
( |
| ) |
|
|
protecteddefault |
◆ storage_interface() [2/3]
| kcenon::pacs::storage::storage_interface::storage_interface |
( |
const storage_interface & | | ) |
|
|
protecteddelete |
◆ storage_interface() [3/3]
◆ exists()
| virtual auto kcenon::pacs::storage::storage_interface::exists |
( |
std::string_view | sop_instance_uid | ) |
const -> bool |
|
nodiscardpure virtual |
◆ find()
◆ get_statistics()
| virtual auto kcenon::pacs::storage::storage_interface::get_statistics |
( |
| ) |
const -> storage_statistics |
|
nodiscardpure virtual |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ remove()
| virtual auto kcenon::pacs::storage::storage_interface::remove |
( |
std::string_view | sop_instance_uid | ) |
-> VoidResult |
|
nodiscardpure virtual |
◆ retrieve()
| virtual auto kcenon::pacs::storage::storage_interface::retrieve |
( |
std::string_view | sop_instance_uid | ) |
-> Result< core::dicom_dataset > |
|
nodiscardpure virtual |
◆ retrieve_batch()
| auto kcenon::pacs::storage::storage_interface::retrieve_batch |
( |
const std::vector< std::string > & | sop_instance_uids | ) |
-> Result<std::vector<core::dicom_dataset>> |
|
nodiscardvirtual |
Retrieve multiple DICOM datasets by their SOP Instance UIDs.
Default implementation calls retrieve() for each UID. Concrete implementations may override for better performance.
- Parameters
-
| sop_instance_uids | The collection of UIDs to retrieve |
- Returns
- Result containing found datasets or error information
- Note
- Missing instances are silently skipped in the result
- Examples
- /home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/storage_interface.h.
Definition at line 33 of file storage_interface.cpp.
35 {
36 std::vector<core::dicom_dataset> results;
37 results.reserve(sop_instance_uids.size());
38
39 for (
const auto&
uid : sop_instance_uids) {
41 if (result.is_ok()) {
42 results.push_back(std::move(result.value()));
43 }
44
45 }
46
47 return results;
48}
virtual auto retrieve(std::string_view sop_instance_uid) -> Result< core::dicom_dataset >=0
Retrieve a DICOM dataset by SOP Instance UID.
References uid.
◆ store()
| virtual auto kcenon::pacs::storage::storage_interface::store |
( |
const core::dicom_dataset & | dataset | ) |
-> VoidResult |
|
nodiscardpure virtual |
◆ store_batch()
| auto kcenon::pacs::storage::storage_interface::store_batch |
( |
const std::vector< core::dicom_dataset > & | datasets | ) |
-> VoidResult |
|
nodiscardvirtual |
Store multiple DICOM datasets in a single operation.
Default implementation calls store() for each dataset. Concrete implementations may override for better performance.
- Parameters
-
| datasets | The collection of datasets to store |
- Returns
- VoidResult Success or error information
- Note
- On error, some datasets may have been stored
- Examples
- /home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/storage_interface.h.
Definition at line 22 of file storage_interface.cpp.
23 {
24 for (const auto& dataset : datasets) {
25 auto result =
store(dataset);
26 if (result.is_err()) {
27 return result;
28 }
29 }
30 return ok();
31}
virtual auto store(const core::dicom_dataset &dataset) -> VoidResult=0
Store a DICOM dataset.
◆ verify_integrity()
| virtual auto kcenon::pacs::storage::storage_interface::verify_integrity |
( |
| ) |
-> VoidResult |
|
nodiscardpure virtual |
The documentation for this class was generated from the following files: