PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::client::queue_entry Struct Reference
Collaboration diagram for kcenon::pacs::client::queue_entry:
Collaboration graph

Public Member Functions

bool operator< (const queue_entry &other) const
 

Public Attributes

std::string job_id
 
job_priority priority
 
std::chrono::system_clock::time_point queued_at
 

Detailed Description

Definition at line 84 of file job_manager.cpp.

Member Function Documentation

◆ operator<()

bool kcenon::pacs::client::queue_entry::operator< ( const queue_entry & other) const
inline

Definition at line 90 of file job_manager.cpp.

90 {
91 if (static_cast<int>(priority) != static_cast<int>(other.priority)) {
92 return static_cast<int>(priority) < static_cast<int>(other.priority);
93 }
94 return queued_at > other.queued_at; // Earlier time = higher priority
95 }
job_priority priority
std::chrono::system_clock::time_point queued_at

References priority, and queued_at.

Member Data Documentation

◆ job_id

std::string kcenon::pacs::client::queue_entry::job_id

Definition at line 85 of file job_manager.cpp.

◆ priority

job_priority kcenon::pacs::client::queue_entry::priority

Definition at line 86 of file job_manager.cpp.

Referenced by operator<().

◆ queued_at

std::chrono::system_clock::time_point kcenon::pacs::client::queue_entry::queued_at

Definition at line 87 of file job_manager.cpp.

Referenced by operator<().


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