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

Result of an access check. More...

#include <access_control_manager.h>

Collaboration diagram for kcenon::pacs::security::AccessCheckResult:
Collaboration graph

Public Member Functions

 operator bool () const
 

Static Public Member Functions

static AccessCheckResult allow ()
 
static AccessCheckResult deny (std::string reason)
 

Public Attributes

bool allowed {false}
 
std::string reason
 

Detailed Description

Result of an access check.

Definition at line 49 of file access_control_manager.h.

Member Function Documentation

◆ allow()

static AccessCheckResult kcenon::pacs::security::AccessCheckResult::allow ( )
inlinestatic

Definition at line 53 of file access_control_manager.h.

53{ return {true, ""}; }

Referenced by kcenon::pacs::security::access_control_manager::check_dicom_operation().

Here is the caller graph for this function:

◆ deny()

static AccessCheckResult kcenon::pacs::security::AccessCheckResult::deny ( std::string reason)
inlinestatic

Definition at line 54 of file access_control_manager.h.

54 {
55 return {false, std::move(reason)};
56 }

References reason.

Referenced by kcenon::pacs::security::access_control_manager::check_dicom_operation().

Here is the caller graph for this function:

◆ operator bool()

kcenon::pacs::security::AccessCheckResult::operator bool ( ) const
inlineexplicit

Definition at line 58 of file access_control_manager.h.

References allowed.

Member Data Documentation

◆ allowed

bool kcenon::pacs::security::AccessCheckResult::allowed {false}

Definition at line 50 of file access_control_manager.h.

50{false};

Referenced by operator bool().

◆ reason

std::string kcenon::pacs::security::AccessCheckResult::reason

Definition at line 51 of file access_control_manager.h.

Referenced by deny().


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