PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::client::sync_config Struct Reference

Configuration for a synchronization task. More...

#include <sync_types.h>

Collaboration diagram for kcenon::pacs::client::sync_config:
Collaboration graph

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)
 

Detailed Description

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.

Member Data Documentation

◆ config_id

std::string kcenon::pacs::client::sync_config::config_id

◆ delete_missing

bool kcenon::pacs::client::sync_config::delete_missing {false}

Delete local if not on remote.

Definition at line 187 of file sync_types.h.

187{false};

Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().

◆ direction

sync_direction kcenon::pacs::client::sync_config::direction {sync_direction::pull}

◆ enabled

bool kcenon::pacs::client::sync_config::enabled {true}

Whether this config is active.

Definition at line 172 of file sync_types.h.

172{true};

Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().

◆ last_successful_sync

std::chrono::system_clock::time_point kcenon::pacs::client::sync_config::last_successful_sync

◆ last_sync

std::chrono::system_clock::time_point kcenon::pacs::client::sync_config::last_sync

◆ lookback

std::chrono::hours kcenon::pacs::client::sync_config::lookback {24}

◆ modalities

std::vector<std::string> kcenon::pacs::client::sync_config::modalities

◆ name

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().

◆ overwrite_existing

bool kcenon::pacs::client::sync_config::overwrite_existing {false}

Overwrite if different.

Definition at line 188 of file sync_types.h.

188{false};

Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().

◆ patient_id_patterns

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().

◆ pk

int64_t kcenon::pacs::client::sync_config::pk {0}

Primary key (0 if not persisted)

Definition at line 210 of file sync_types.h.

210{0};

Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().

◆ schedule_cron

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().

◆ source_node_id

std::string kcenon::pacs::client::sync_config::source_node_id

◆ studies_synced

size_t kcenon::pacs::client::sync_config::studies_synced {0}

Definition at line 204 of file sync_types.h.

204{0};

Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().

◆ sync_metadata_only

bool kcenon::pacs::client::sync_config::sync_metadata_only {false}

Only sync metadata, not images.

Definition at line 189 of file sync_types.h.

189{false};

Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().

◆ total_syncs

size_t kcenon::pacs::client::sync_config::total_syncs {0}

Definition at line 203 of file sync_types.h.

203{0};

Referenced by kcenon::pacs::storage::sync_repository::parse_config_row().


The documentation for this struct was generated from the following file: