Odil
A C++11 library for the DICOM standard
Public Member Functions | List of all members
odil::AssociationRejected Struct Reference

Exception reported when an incoming association is rejected. More...

#include <AssociationAcceptor.h>

Inheritance diagram for odil::AssociationRejected:
Inheritance graph
[legend]
Collaboration diagram for odil::AssociationRejected:
Collaboration graph
[legend]

Public Member Functions

 AssociationRejected (unsigned char result, unsigned char source, unsigned char reason, std::string const &message="Association rejected")
 Constructor. More...
 
unsigned char get_result () const
 Return the rejection result. More...
 
void set_result (unsigned char value)
 Set the rejection result. More...
 
unsigned char get_source () const
 Return the rejection source. More...
 
void set_source (unsigned char value)
 Set the rejection source. More...
 
unsigned char get_reason () const
 Return the rejection reason. More...
 
void set_reason (unsigned char value)
 Set the rejection reason. More...
 
- Public Member Functions inherited from odil::Exception
 Exception (std::string const &message="")
 Message string constructor. More...
 
virtual ~Exception () noexcept
 Destructor. More...
 
virtual const char * what () const noexcept
 Return the reason for the exception. More...
 

Additional Inherited Members

- Protected Attributes inherited from odil::Exception
std::string _message
 Message of the exception. More...
 

Detailed Description

Exception reported when an incoming association is rejected.

Constructor & Destructor Documentation

◆ AssociationRejected()

odil::AssociationRejected::AssociationRejected ( unsigned char  result,
unsigned char  source,
unsigned char  reason,
std::string const &  message = "Association rejected" 
)

Constructor.

Member Function Documentation

◆ get_reason()

unsigned char odil::AssociationRejected::get_reason ( ) const

Return the rejection reason.

◆ get_result()

unsigned char odil::AssociationRejected::get_result ( ) const

Return the rejection result.

◆ get_source()

unsigned char odil::AssociationRejected::get_source ( ) const

Return the rejection source.

◆ set_reason()

void odil::AssociationRejected::set_reason ( unsigned char  value)

Set the rejection reason.

◆ set_result()

void odil::AssociationRejected::set_result ( unsigned char  value)

Set the rejection result.

◆ set_source()

void odil::AssociationRejected::set_source ( unsigned char  value)

Set the rejection source.


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