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

Response for sorted instances query. More...

#include <metadata_service.h>

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

Static Public Member Functions

static sorted_instances_response ok (std::vector< sorted_instance > inst, size_t count)
 Create a success result.
 
static sorted_instances_response 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.
 
std::vector< sorted_instanceinstances
 Sorted instances.
 
size_t total {0}
 Total number of instances.
 

Detailed Description

Response for sorted instances query.

Definition at line 162 of file metadata_service.h.

Member Function Documentation

◆ error()

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

Create an error result.

Definition at line 186 of file metadata_service.h.

186 {
187 sorted_instances_response r;
188 r.success = false;
189 r.error_message = std::move(message);
190 return r;
191 }

References error_message, and success.

Referenced by kcenon::pacs::web::metadata_service::get_sorted_instances().

Here is the caller graph for this function:

◆ ok()

static sorted_instances_response kcenon::pacs::web::sorted_instances_response::ok ( std::vector< sorted_instance > inst,
size_t count )
inlinestatic

Create a success result.

Definition at line 176 of file metadata_service.h.

177 {
178 sorted_instances_response r;
179 r.success = true;
180 r.instances = std::move(inst);
181 r.total = count;
182 return r;
183 }

References instances, success, and total.

Referenced by kcenon::pacs::web::metadata_service::get_sorted_instances().

Here is the caller graph for this function:

Member Data Documentation

◆ error_message

std::string kcenon::pacs::web::sorted_instances_response::error_message

Error message if failed.

Definition at line 167 of file metadata_service.h.

Referenced by error().

◆ instances

std::vector<sorted_instance> kcenon::pacs::web::sorted_instances_response::instances

Sorted instances.

Definition at line 170 of file metadata_service.h.

Referenced by ok().

◆ success

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

Whether the operation succeeded.

Definition at line 164 of file metadata_service.h.

164{false};

Referenced by error(), and ok().

◆ total

size_t kcenon::pacs::web::sorted_instances_response::total {0}

Total number of instances.

Definition at line 173 of file metadata_service.h.

173{0};

Referenced by ok().


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