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

Result of an N-GET operation. More...

#include <n_get_scu.h>

Collaboration diagram for kcenon::pacs::services::n_get_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

uint16_t status {0}
 DIMSE status code (0x0000 = success)
 
core::dicom_dataset attributes
 Retrieved attributes from the SOP Instance.
 
std::string error_comment
 Error comment from the SCP (if any)
 
std::chrono::milliseconds elapsed {0}
 Time taken for the operation.
 

Detailed Description

Result of an N-GET operation.

Contains the retrieved attributes and status information.

Definition at line 45 of file n_get_scu.h.

Member Function Documentation

◆ is_error()

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

Check if this was an error status.

Definition at line 69 of file n_get_scu.h.

69 {
70 return !is_success() && !is_warning();
71 }
bool is_warning() const noexcept
Check if this was a warning status.
Definition n_get_scu.h:64
bool is_success() const noexcept
Check if the operation was successful.
Definition n_get_scu.h:59

References is_success(), and is_warning().

Here is the call graph for this function:

◆ is_success()

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

Check if the operation was successful.

Definition at line 59 of file n_get_scu.h.

59 {
60 return status == 0x0000;
61 }
uint16_t status
DIMSE status code (0x0000 = success)
Definition n_get_scu.h:47

References status.

Referenced by kcenon::pacs::services::n_get_scu::get(), and is_error().

Here is the caller graph for this function:

◆ is_warning()

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

Check if this was a warning status.

Definition at line 64 of file n_get_scu.h.

64 {
65 return (status & 0xF000) == 0xB000;
66 }

References status.

Referenced by is_error().

Here is the caller graph for this function:

Member Data Documentation

◆ attributes

core::dicom_dataset kcenon::pacs::services::n_get_result::attributes

Retrieved attributes from the SOP Instance.

Definition at line 50 of file n_get_scu.h.

Referenced by kcenon::pacs::services::n_get_scu::get().

◆ elapsed

std::chrono::milliseconds kcenon::pacs::services::n_get_result::elapsed {0}

Time taken for the operation.

Definition at line 56 of file n_get_scu.h.

56{0};

Referenced by kcenon::pacs::services::n_get_scu::get().

◆ error_comment

std::string kcenon::pacs::services::n_get_result::error_comment

Error comment from the SCP (if any)

Definition at line 53 of file n_get_scu.h.

Referenced by kcenon::pacs::services::n_get_scu::get().

◆ status

uint16_t kcenon::pacs::services::n_get_result::status {0}

DIMSE status code (0x0000 = success)

Definition at line 47 of file n_get_scu.h.

47{0};

Referenced by kcenon::pacs::services::n_get_scu::get(), is_success(), and is_warning().


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