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

Presentation Context item for a A-ASSOCIATE-AC PDU (PS 3.8, 9.3.3.2). More...

#include <PresentationContextAC.h>

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

Public Member Functions

 PresentationContextAC (uint8_t id, std::string const &transfer_syntax, uint8_t result_reason)
 Constructor. More...
 
 PresentationContextAC (std::istream &stream)
 Read a Presentation Context from a stream. More...
 
 ~PresentationContextAC ()
 Destructor. More...
 
uint8_t get_result_reason () const
 Return the Result/Reason. More...
 
void set_result_reason (uint8_t result_reason)
 Set the Result/Reason. More...
 
std::string get_transfer_syntax () const
 Return the Transfer Syntax. More...
 
void set_transfer_syntax (std::string const &transfer_syntax)
 Set the Transfer Syntax. More...
 
- Public Member Functions inherited from odil::pdu::PresentationContext
 PresentationContext ()
 Constructor. More...
 
 PresentationContext (std::istream &stream)
 Read from a stream. More...
 
virtual ~PresentationContext ()=0
 Destructor, make the class pure virtual. More...
 
uint8_t get_item_type () const
 Return the Item-type. More...
 
uint8_t get_id () const
 Return the Presentation context id. More...
 
void set_id (uint8_t id)
 Set the Presentation context id. 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::PresentationContext
void _add_fields ()
 Add common fields. More...
 
std::vector< std::string > _get_syntaxes (std::string const &type) const
 Return the Abstract or Transfer syntaxes. More...
 
void _set_syntaxes (std::string const &type, std::vector< std::string > const &syntaxes)
 Set the Abstract or Transfer syntaxes. More...
 
- 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...
 
- Static Protected Member Functions inherited from odil::pdu::PresentationContext
static Item _make_string_item (std::string const &type, std::string const &value)
 Create an Abstract Syntax or Transfer Syntax sub-item. More...
 
- Protected Attributes inherited from odil::pdu::Object
Item _item
 

Detailed Description

Presentation Context item for a A-ASSOCIATE-AC PDU (PS 3.8, 9.3.3.2).

Constructor & Destructor Documentation

◆ PresentationContextAC() [1/2]

odil::pdu::PresentationContextAC::PresentationContextAC ( uint8_t  id,
std::string const &  transfer_syntax,
uint8_t  result_reason 
)

Constructor.

◆ PresentationContextAC() [2/2]

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

Read a Presentation Context from a stream.

◆ ~PresentationContextAC()

odil::pdu::PresentationContextAC::~PresentationContextAC ( )

Destructor.

Member Function Documentation

◆ get_result_reason()

uint8_t odil::pdu::PresentationContextAC::get_result_reason ( ) const

Return the Result/Reason.

◆ get_transfer_syntax()

std::string odil::pdu::PresentationContextAC::get_transfer_syntax ( ) const

Return the Transfer Syntax.

◆ set_result_reason()

void odil::pdu::PresentationContextAC::set_result_reason ( uint8_t  result_reason)

Set the Result/Reason.

◆ set_transfer_syntax()

void odil::pdu::PresentationContextAC::set_transfer_syntax ( std::string const &  transfer_syntax)

Set the Transfer Syntax.


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