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

Result type for thumbnail operations. More...

#include <thumbnail_service.h>

Collaboration diagram for kcenon::pacs::web::thumbnail_result:
Collaboration graph

Static Public Member Functions

static thumbnail_result ok (thumbnail_cache_entry entry)
 Create a success result.
 
static thumbnail_result error (std::string message)
 Create an error result.
 

Public Attributes

bool success {false}
 Whether the operation succeeded.
 
std::string error_message
 Error message if failed.
 
thumbnail_cache_entry entry
 Thumbnail data if succeeded.
 

Detailed Description

Result type for thumbnail operations.

Definition at line 76 of file thumbnail_service.h.

Member Function Documentation

◆ error()

static thumbnail_result kcenon::pacs::web::thumbnail_result::error ( std::string message)
inlinestatic

Create an error result.

Definition at line 95 of file thumbnail_service.h.

95 {
96 thumbnail_result r;
97 r.success = false;
98 r.error_message = std::move(message);
99 return r;
100 }

References error_message, and success.

Referenced by kcenon::pacs::web::thumbnail_service::get_series_thumbnail(), kcenon::pacs::web::thumbnail_service::get_study_thumbnail(), and kcenon::pacs::web::thumbnail_service::get_thumbnail().

Here is the caller graph for this function:

◆ ok()

static thumbnail_result kcenon::pacs::web::thumbnail_result::ok ( thumbnail_cache_entry entry)
inlinestatic

Create a success result.

Definition at line 87 of file thumbnail_service.h.

87 {
88 thumbnail_result r;
89 r.success = true;
90 r.entry = std::move(entry);
91 return r;
92 }
thumbnail_cache_entry entry
Thumbnail data if succeeded.

References entry, and success.

Referenced by kcenon::pacs::web::thumbnail_service::get_thumbnail().

Here is the caller graph for this function:

Member Data Documentation

◆ entry

thumbnail_cache_entry kcenon::pacs::web::thumbnail_result::entry

Thumbnail data if succeeded.

Definition at line 84 of file thumbnail_service.h.

Referenced by ok().

◆ error_message

std::string kcenon::pacs::web::thumbnail_result::error_message

Error message if failed.

Definition at line 81 of file thumbnail_service.h.

Referenced by error().

◆ success

bool kcenon::pacs::web::thumbnail_result::success {false}

Whether the operation succeeded.

Definition at line 78 of file thumbnail_service.h.

78{false};

Referenced by error(), and ok().


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