|
PACS System 0.1.0
PACS DICOM system library
|
Configuration for a synchronization task. More...
#include <sync_types.h>

Public Attributes | |
| std::string | config_id |
| Unique configuration identifier. | |
| std::string | source_node_id |
| Remote node to sync with. | |
| std::string | name |
| Human-readable name. | |
| bool | enabled {true} |
| Whether this config is active. | |
| std::chrono::hours | lookback {24} |
| How far back to sync. | |
| std::vector< std::string > | modalities |
| Modality filter (empty = all) | |
| std::vector< std::string > | patient_id_patterns |
| Patient ID patterns (empty = all) | |
| sync_direction | direction {sync_direction::pull} |
| Direction of sync. | |
| bool | delete_missing {false} |
| Delete local if not on remote. | |
| bool | overwrite_existing {false} |
| Overwrite if different. | |
| bool | sync_metadata_only {false} |
| Only sync metadata, not images. | |
| std::string | schedule_cron |
| Cron expression for scheduling. | |
| std::chrono::system_clock::time_point | last_sync |
| std::chrono::system_clock::time_point | last_successful_sync |
| size_t | total_syncs {0} |
| size_t | studies_synced {0} |
| int64_t | pk {0} |
| Primary key (0 if not persisted) | |
Configuration for a synchronization task.
Defines the scope, behavior, and schedule for syncing with a remote node.
Definition at line 164 of file sync_types.h.
| std::string kcenon::pacs::client::sync_config::config_id |
Unique configuration identifier.
Definition at line 169 of file sync_types.h.
Referenced by kcenon::pacs::client::sync_manager::impl::compare_with_local(), kcenon::pacs::storage::sync_repository::parse_config_row(), and kcenon::pacs::client::sync_manager::impl::perform_sync().
| bool kcenon::pacs::client::sync_config::delete_missing {false} |
Delete local if not on remote.
Definition at line 187 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| sync_direction kcenon::pacs::client::sync_config::direction {sync_direction::pull} |
Direction of sync.
Definition at line 186 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row(), and kcenon::pacs::client::sync_manager::impl::perform_sync().
| bool kcenon::pacs::client::sync_config::enabled {true} |
Whether this config is active.
Definition at line 172 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| std::chrono::system_clock::time_point kcenon::pacs::client::sync_config::last_successful_sync |
Definition at line 202 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row(), and kcenon::pacs::client::sync_manager::impl::perform_sync().
| std::chrono::system_clock::time_point kcenon::pacs::client::sync_config::last_sync |
Definition at line 201 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| std::chrono::hours kcenon::pacs::client::sync_config::lookback {24} |
How far back to sync.
Definition at line 178 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row(), and kcenon::pacs::client::sync_manager::impl::perform_sync().
| std::vector<std::string> kcenon::pacs::client::sync_config::modalities |
Modality filter (empty = all)
Definition at line 179 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row(), and kcenon::pacs::client::sync_manager::impl::query_remote_studies().
| std::string kcenon::pacs::client::sync_config::name |
Human-readable name.
Definition at line 171 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| bool kcenon::pacs::client::sync_config::overwrite_existing {false} |
Overwrite if different.
Definition at line 188 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| std::vector<std::string> kcenon::pacs::client::sync_config::patient_id_patterns |
Patient ID patterns (empty = all)
Definition at line 180 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| int64_t kcenon::pacs::client::sync_config::pk {0} |
Primary key (0 if not persisted)
Definition at line 210 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| std::string kcenon::pacs::client::sync_config::schedule_cron |
Cron expression for scheduling.
Definition at line 195 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| std::string kcenon::pacs::client::sync_config::source_node_id |
Remote node to sync with.
Definition at line 170 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row(), kcenon::pacs::client::sync_manager::impl::perform_sync(), and kcenon::pacs::client::sync_manager::impl::query_remote_studies().
| size_t kcenon::pacs::client::sync_config::studies_synced {0} |
Definition at line 204 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| bool kcenon::pacs::client::sync_config::sync_metadata_only {false} |
Only sync metadata, not images.
Definition at line 189 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().
| size_t kcenon::pacs::client::sync_config::total_syncs {0} |
Definition at line 203 of file sync_types.h.
Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().