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

A-ASSOCIATE-RJ PDU, cf. PS 3.8, 9.3.4. More...

#include <AAssociateRJ.h>

Inheritance diagram for odil::pdu::AAssociateRJ:
Inheritance graph
[legend]
Collaboration diagram for odil::pdu::AAssociateRJ:
Collaboration graph
[legend]

Public Member Functions

 AAssociateRJ (unsigned char result, unsigned char source, unsigned char reason)
 Constructor. More...
 
 AAssociateRJ (std::istream &stream)
 Constructor from stream. More...
 
unsigned char get_result () const
 Return the result. More...
 
void set_result (unsigned char result)
 Set the result, must be 1 or 2. More...
 
unsigned char get_source () const
 Return the source. More...
 
void set_source (unsigned char source)
 Set the source, must be 1, 2 or 3. More...
 
unsigned char get_reason () const
 Return the reason. More...
 
void set_reason (unsigned char reason)
 Set the reason. More...
 
- Public Member Functions inherited from odil::pdu::Object
virtual ~Object ()
 Destructor, makes the type polymorphic. More...
 
const Itemget_item () const
 Get the underlying item. More...
 

Additional Inherited Members

- Protected Member Functions inherited from odil::pdu::Object
uint32_t _compute_length () const
 Compute the value of the length field of the object. More...
 
uint32_t _compute_length (Item const &item) const
 Compute the full size of an item. More...
 
uint32_t _compute_length (Item::Field const &field) const
 Compute the full size of a field. More...
 
- Protected Attributes inherited from odil::pdu::Object
Item _item
 

Detailed Description

A-ASSOCIATE-RJ PDU, cf. PS 3.8, 9.3.4.

Constructor & Destructor Documentation

◆ AAssociateRJ() [1/2]

odil::pdu::AAssociateRJ::AAssociateRJ ( unsigned char  result,
unsigned char  source,
unsigned char  reason 
)

Constructor.

◆ AAssociateRJ() [2/2]

odil::pdu::AAssociateRJ::AAssociateRJ ( std::istream &  stream)

Constructor from stream.

Member Function Documentation

◆ get_reason()

unsigned char odil::pdu::AAssociateRJ::get_reason ( ) const

Return the reason.

◆ get_result()

unsigned char odil::pdu::AAssociateRJ::get_result ( ) const

Return the result.

◆ get_source()

unsigned char odil::pdu::AAssociateRJ::get_source ( ) const

Return the source.

◆ set_reason()

void odil::pdu::AAssociateRJ::set_reason ( unsigned char  reason)

Set the reason.

◆ set_result()

void odil::pdu::AAssociateRJ::set_result ( unsigned char  result)

Set the result, must be 1 or 2.

◆ set_source()

void odil::pdu::AAssociateRJ::set_source ( unsigned char  source)

Set the source, must be 1, 2 or 3.


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