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

A single condition for routing rule evaluation. More...

#include <routing_types.h>

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

Public Member Functions

 routing_condition ()=default
 Default constructor.
 
 routing_condition (routing_field field, std::string pat, bool case_sens=false, bool neg=false)
 Construct with field and pattern.
 

Public Attributes

routing_field match_field
 The DICOM field to match.
 
std::string pattern
 Pattern to match (supports wildcards: *, ?)
 
bool case_sensitive {false}
 Whether matching is case-sensitive.
 
bool negate {false}
 Invert the match result.
 

Detailed Description

A single condition for routing rule evaluation.

Conditions are combined using AND logic within a rule. Supports wildcard patterns (* for any characters, ? for single character).

Definition at line 105 of file routing_types.h.

Constructor & Destructor Documentation

◆ routing_condition() [1/2]

kcenon::pacs::client::routing_condition::routing_condition ( )
default

Default constructor.

◆ routing_condition() [2/2]

kcenon::pacs::client::routing_condition::routing_condition ( routing_field field,
std::string pat,
bool case_sens = false,
bool neg = false )
inline

Construct with field and pattern.

Parameters
fieldThe DICOM field to match
patThe pattern to match against
case_sensCase sensitivity flag
negNegation flag

Definition at line 123 of file routing_types.h.

125 : match_field(field)
126 , pattern(std::move(pat))
127 , case_sensitive(case_sens)
128 , negate(neg) {}
std::string pattern
Pattern to match (supports wildcards: *, ?)
routing_field match_field
The DICOM field to match.
bool negate
Invert the match result.
bool case_sensitive
Whether matching is case-sensitive.

Member Data Documentation

◆ case_sensitive

bool kcenon::pacs::client::routing_condition::case_sensitive {false}

Whether matching is case-sensitive.

Definition at line 108 of file routing_types.h.

108{false};

Referenced by kcenon::pacs::storage::routing_repository::deserialize_conditions(), and kcenon::pacs::client::routing_manager::match_condition().

◆ match_field

routing_field kcenon::pacs::client::routing_condition::match_field

◆ negate

bool kcenon::pacs::client::routing_condition::negate {false}

◆ pattern

std::string kcenon::pacs::client::routing_condition::pattern

Pattern to match (supports wildcards: *, ?)

Definition at line 107 of file routing_types.h.

Referenced by kcenon::pacs::storage::routing_repository::deserialize_conditions(), and kcenon::pacs::client::routing_manager::match_condition().


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