Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
Public Member Functions | List of all members
odil::pdu::AAbort Class Reference

A-ABORT PDU, cf. PS 3.8, 9.3.8. More...

#include <AAbort.h>

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

Public Member Functions

 AAbort (unsigned char source, unsigned char reason)
 Constructor.
 
 AAbort (std::istream &stream)
 Constructor for binary data.
 
unsigned char get_source () const
 Return the source.
 
void set_source (unsigned char source)
 Set the source, must be 0, 1 or 2.
 
unsigned char get_reason () const
 Return the reason.
 
void set_reason (unsigned char reason)
 Set the reason, must be between 0 and 6.
 
- Public Member Functions inherited from odil::pdu::Object
virtual ~Object ()
 Destructor, makes the type polymorphic.
 
Item const & get_item () const
 Get the underlying item.
 

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.
 
uint32_t _compute_length (Item const &item) const
 Compute the full size of an item.
 
uint32_t _compute_length (Item::Field const &field) const
 Compute the full size of a field.
 
- Protected Attributes inherited from odil::pdu::Object
Item _item
 

Detailed Description

A-ABORT PDU, cf. PS 3.8, 9.3.8.

Constructor & Destructor Documentation

◆ AAbort() [1/2]

odil::pdu::AAbort::AAbort ( unsigned char  source,
unsigned char  reason 
)

Constructor.

◆ AAbort() [2/2]

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

Constructor for binary data.

Member Function Documentation

◆ get_reason()

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

Return the reason.

◆ get_source()

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

Return the source.

◆ set_reason()

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

Set the reason, must be between 0 and 6.

◆ set_source()

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

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


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