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

Result of a Print DIMSE-N operation. More...

#include <print_scu.h>

Collaboration diagram for kcenon::pacs::services::print_result:
Collaboration graph

Public Member Functions

bool is_success () const noexcept
 Check if the operation was successful.
 
bool is_warning () const noexcept
 Check if this was a warning status.
 
bool is_error () const noexcept
 Check if this was an error status.
 

Public Attributes

std::string sop_instance_uid
 SOP Instance UID (session, film box, image box, or printer)
 
uint16_t status {0}
 DIMSE status code (0x0000 = success)
 
std::string error_comment
 Error comment from the SCP (if any)
 
std::chrono::milliseconds elapsed {0}
 Time taken for the operation.
 
core::dicom_dataset response_data
 Response dataset (e.g., printer status, referenced image box UIDs)
 

Detailed Description

Result of a Print DIMSE-N operation.

Contains outcome information from N-CREATE, N-SET, N-GET, N-ACTION, or N-DELETE operations.

Definition at line 47 of file print_scu.h.

Member Function Documentation

◆ is_error()

bool kcenon::pacs::services::print_result::is_error ( ) const
inlinenodiscardnoexcept

Check if this was an error status.

Definition at line 74 of file print_scu.h.

74 {
75 return !is_success() && !is_warning();
76 }
bool is_warning() const noexcept
Check if this was a warning status.
Definition print_scu.h:69
bool is_success() const noexcept
Check if the operation was successful.
Definition print_scu.h:64

References is_success(), and is_warning().

Here is the call graph for this function:

◆ is_success()

bool kcenon::pacs::services::print_result::is_success ( ) const
inlinenodiscardnoexcept

◆ is_warning()

bool kcenon::pacs::services::print_result::is_warning ( ) const
inlinenodiscardnoexcept

Check if this was a warning status.

Definition at line 69 of file print_scu.h.

69 {
70 return (status & 0xF000) == 0xB000;
71 }

References status.

Referenced by is_error().

Here is the caller graph for this function:

Member Data Documentation

◆ elapsed

◆ error_comment

◆ response_data

core::dicom_dataset kcenon::pacs::services::print_result::response_data

Response dataset (e.g., printer status, referenced image box UIDs)

Definition at line 61 of file print_scu.h.

Referenced by kcenon::pacs::services::print_scu::create_film_box(), and kcenon::pacs::services::print_scu::query_printer_status().

◆ sop_instance_uid

◆ status


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