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

Validation result for DICOM instance. More...

#include <dicomweb_endpoints.h>

Collaboration diagram for kcenon::pacs::web::dicomweb::validation_result:
Collaboration graph

Public Member Functions

 operator bool () const noexcept
 

Static Public Member Functions

static validation_result ok ()
 
static validation_result error (std::string code, std::string message)
 

Public Attributes

bool valid = true
 Whether validation passed.
 
std::string error_code
 Error code if invalid.
 
std::string error_message
 Error message if invalid.
 

Detailed Description

Validation result for DICOM instance.

Definition at line 323 of file dicomweb_endpoints.h.

Member Function Documentation

◆ error()

static validation_result kcenon::pacs::web::dicomweb::validation_result::error ( std::string code,
std::string message )
inlinestatic

Definition at line 331 of file dicomweb_endpoints.h.

331 {
332 return {false, std::move(code), std::move(message)};
333 }
std::string_view code

References code.

Referenced by kcenon::pacs::web::dicomweb::validate_instance().

Here is the caller graph for this function:

◆ ok()

static validation_result kcenon::pacs::web::dicomweb::validation_result::ok ( )
inlinestatic

Definition at line 330 of file dicomweb_endpoints.h.

330{ return {true, "", ""}; }

Referenced by kcenon::pacs::web::dicomweb::validate_instance().

Here is the caller graph for this function:

◆ operator bool()

kcenon::pacs::web::dicomweb::validation_result::operator bool ( ) const
inlineexplicitnodiscardnoexcept

Definition at line 328 of file dicomweb_endpoints.h.

328{ return valid; }

References valid.

Member Data Documentation

◆ error_code

std::string kcenon::pacs::web::dicomweb::validation_result::error_code

Error code if invalid.

Definition at line 325 of file dicomweb_endpoints.h.

◆ error_message

std::string kcenon::pacs::web::dicomweb::validation_result::error_message

Error message if invalid.

Definition at line 326 of file dicomweb_endpoints.h.

◆ valid

bool kcenon::pacs::web::dicomweb::validation_result::valid = true

Whether validation passed.

Definition at line 324 of file dicomweb_endpoints.h.

Referenced by operator bool().


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