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

Action to perform when a routing rule matches. More...

#include <routing_types.h>

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

Public Member Functions

 routing_action ()=default
 Default constructor.
 
 routing_action (std::string dest_node_id, job_priority prio=job_priority::normal, std::chrono::minutes del=std::chrono::minutes{0})
 Construct with destination.
 

Public Attributes

std::string destination_node_id
 Target remote node ID.
 
job_priority priority {job_priority::normal}
 Job priority for forwarding.
 
std::chrono::minutes delay {0}
 Delay before forwarding.
 
bool delete_after_send {false}
 Delete local copy after successful send.
 
bool notify_on_failure {true}
 Generate notification on failure.
 

Detailed Description

Action to perform when a routing rule matches.

Defines where to forward the DICOM instance and with what settings.

Definition at line 140 of file routing_types.h.

Constructor & Destructor Documentation

◆ routing_action() [1/2]

kcenon::pacs::client::routing_action::routing_action ( )
default

Default constructor.

◆ routing_action() [2/2]

kcenon::pacs::client::routing_action::routing_action ( std::string dest_node_id,
job_priority prio = job_priority::normal,
std::chrono::minutes del = std::chrono::minutes{0} )
inline

Construct with destination.

Parameters
dest_node_idThe destination node ID
prioJob priority
delDelay before sending

Definition at line 158 of file routing_types.h.

160 {0})
161 : destination_node_id(std::move(dest_node_id))
162 , priority(prio)
163 , delay(del) {}
@ move
C-MOVE move request/response.
std::string destination_node_id
Target remote node ID.
std::chrono::minutes delay
Delay before forwarding.
job_priority priority
Job priority for forwarding.

Member Data Documentation

◆ delay

std::chrono::minutes kcenon::pacs::client::routing_action::delay {0}

Delay before forwarding.

Definition at line 143 of file routing_types.h.

143{0};

Referenced by kcenon::pacs::storage::routing_repository::deserialize_actions().

◆ delete_after_send

bool kcenon::pacs::client::routing_action::delete_after_send {false}

Delete local copy after successful send.

Definition at line 144 of file routing_types.h.

144{false};

Referenced by kcenon::pacs::storage::routing_repository::deserialize_actions().

◆ destination_node_id

std::string kcenon::pacs::client::routing_action::destination_node_id

Target remote node ID.

Definition at line 141 of file routing_types.h.

Referenced by kcenon::pacs::storage::routing_repository::deserialize_actions().

◆ notify_on_failure

bool kcenon::pacs::client::routing_action::notify_on_failure {true}

Generate notification on failure.

Definition at line 145 of file routing_types.h.

145{true};

Referenced by kcenon::pacs::storage::routing_repository::deserialize_actions().

◆ priority

job_priority kcenon::pacs::client::routing_action::priority {job_priority::normal}

Job priority for forwarding.

Definition at line 142 of file routing_types.h.

Referenced by kcenon::pacs::storage::routing_repository::deserialize_actions().


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