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

Result of a C-STORE operation. More...

#include <storage_scu.h>

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

Public Member Functions

bool is_success () const noexcept
 Check if the store 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 of the stored instance.
 
uint16_t status {0}
 DIMSE status code (0x0000 = success)
 
std::string error_comment
 Error comment from the SCP (if any)
 

Detailed Description

Result of a C-STORE operation.

Contains information about the outcome of storing a single DICOM instance.

Examples
store_scu/main.cpp.

Definition at line 43 of file storage_scu.h.

Member Function Documentation

◆ is_error()

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

Check if this was an error status.

Definition at line 64 of file storage_scu.h.

64 {
65 return !is_success() && !is_warning();
66 }
bool is_warning() const noexcept
Check if this was a warning status.
Definition storage_scu.h:59
bool is_success() const noexcept
Check if the store operation was successful.
Definition storage_scu.h:54

References is_success(), and is_warning().

Here is the call graph for this function:

◆ is_success()

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

Check if the store operation was successful.

Examples
store_scu/main.cpp.

Definition at line 54 of file storage_scu.h.

54 {
55 return status == 0x0000;
56 }
uint16_t status
DIMSE status code (0x0000 = success)
Definition storage_scu.h:48

References status.

Referenced by is_error(), kcenon::pacs::services::storage_scu::store_impl(), TEST_CASE(), and TEST_CASE().

Here is the caller graph for this function:

◆ is_warning()

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

Check if this was a warning status.

Examples
store_scu/main.cpp.

Definition at line 59 of file storage_scu.h.

59 {
60 return (status & 0xF000) == 0xB000;
61 }

References status.

Referenced by is_error(), and kcenon::pacs::services::storage_scu::store_impl().

Here is the caller graph for this function:

Member Data Documentation

◆ error_comment

std::string kcenon::pacs::services::store_result::error_comment

◆ sop_instance_uid

std::string kcenon::pacs::services::store_result::sop_instance_uid

◆ status

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

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