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

Information about an association rejection. More...

#include <association.h>

Collaboration diagram for kcenon::pacs::network::rejection_info:
Collaboration graph

Public Member Functions

 rejection_info ()
 
 rejection_info (reject_result res, uint8_t src, uint8_t rsn)
 

Public Attributes

reject_result result
 
uint8_t source
 
uint8_t reason
 
std::string description
 

Private Member Functions

void build_description ()
 

Detailed Description

Information about an association rejection.

Definition at line 230 of file association.h.

Constructor & Destructor Documentation

◆ rejection_info() [1/2]

kcenon::pacs::network::rejection_info::rejection_info ( )
inline

◆ rejection_info() [2/2]

kcenon::pacs::network::rejection_info::rejection_info ( reject_result res,
uint8_t src,
uint8_t rsn )
inline

Definition at line 241 of file association.h.

242 : result(res), source(src), reason(rsn) {
244 }

References build_description().

Here is the call graph for this function:

Member Function Documentation

◆ build_description()

void kcenon::pacs::network::rejection_info::build_description ( )
private

Definition at line 34 of file association.cpp.

34 {
35 std::ostringstream oss;
36 oss << "Association rejected: ";
37
39 oss << "permanent, ";
40 } else {
41 oss << "transient, ";
42 }
43
44 switch (static_cast<reject_source>(source)) {
46 oss << "source=service-user, ";
47 switch (static_cast<reject_reason_user>(reason)) {
49 oss << "reason=no reason given";
50 break;
52 oss << "reason=application context not supported";
53 break;
55 oss << "reason=calling AE title not recognized";
56 break;
58 oss << "reason=called AE title not recognized";
59 break;
60 default:
61 oss << "reason=unknown (" << static_cast<int>(reason) << ")";
62 }
63 break;
65 oss << "source=service-provider (ACSE), ";
66 switch (static_cast<reject_reason_provider_acse>(reason)) {
68 oss << "reason=no reason given";
69 break;
71 oss << "reason=protocol version not supported";
72 break;
73 default:
74 oss << "reason=unknown (" << static_cast<int>(reason) << ")";
75 }
76 break;
78 oss << "source=service-provider (Presentation), ";
79 switch (static_cast<reject_reason_provider_presentation>(reason)) {
81 oss << "reason=temporary congestion";
82 break;
84 oss << "reason=local limit exceeded";
85 break;
86 default:
87 oss << "reason=unknown (" << static_cast<int>(reason) << ")";
88 }
89 break;
90 default:
91 oss << "source=unknown (" << static_cast<int>(source) << ")";
92 }
93
94 description = oss.str();
95}
reject_reason_provider_acse
Reject reason values when source is service-provider (ACSE).
Definition pdu_types.h:119
@ protocol_version_not_supported
Protocol-version not supported.
reject_source
Reject source values.
Definition pdu_types.h:100
@ service_provider_acse
DICOM UL service-provider (ACSE)
@ service_user
DICOM UL service-user.
@ service_provider_presentation
DICOM UL service-provider (Presentation)
reject_reason_provider_presentation
Reject reason values when source is service-provider (Presentation).
Definition pdu_types.h:127
reject_reason_user
Reject reason values when source is service-user.
Definition pdu_types.h:109
@ called_ae_not_recognized
Called-AE-title not recognized.
@ application_context_not_supported
Application-context-name not supported.
@ calling_ae_not_recognized
Calling-AE-title not recognized.

References kcenon::pacs::network::application_context_not_supported, kcenon::pacs::network::called_ae_not_recognized, kcenon::pacs::network::calling_ae_not_recognized, description, kcenon::pacs::network::local_limit_exceeded, kcenon::pacs::network::no_reason, kcenon::pacs::network::protocol_version_not_supported, reason, kcenon::pacs::network::rejected_permanent, result, kcenon::pacs::network::service_provider_acse, kcenon::pacs::network::service_provider_presentation, kcenon::pacs::network::service_user, source, and kcenon::pacs::network::temporary_congestion.

Referenced by rejection_info().

Here is the caller graph for this function:

Member Data Documentation

◆ description

std::string kcenon::pacs::network::rejection_info::description

Definition at line 234 of file association.h.

Referenced by build_description().

◆ reason

uint8_t kcenon::pacs::network::rejection_info::reason

Definition at line 233 of file association.h.

Referenced by build_description().

◆ result

reject_result kcenon::pacs::network::rejection_info::result

Definition at line 231 of file association.h.

Referenced by build_description().

◆ source

uint8_t kcenon::pacs::network::rejection_info::source

Definition at line 232 of file association.h.

Referenced by build_description().


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