Odil
A C++11 library for the DICOM standard
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
odil::pdu::PresentationContext Class Referenceabstract

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

#include <PresentationContext.h>

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

Public Member Functions

 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...
 
Item const & get_item () const
 Get the underlying item. More...
 

Protected Member Functions

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

static Item _make_string_item (std::string const &type, std::string const &value)
 Create an Abstract Syntax or Transfer Syntax sub-item. More...
 

Additional Inherited Members

- Protected Attributes inherited from odil::pdu::Object
Item _item
 

Detailed Description

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

Constructor & Destructor Documentation

◆ PresentationContext() [1/2]

odil::pdu::PresentationContext::PresentationContext ( )

Constructor.

◆ PresentationContext() [2/2]

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

Read from a stream.

◆ ~PresentationContext()

virtual odil::pdu::PresentationContext::~PresentationContext ( )
pure virtual

Destructor, make the class pure virtual.

Member Function Documentation

◆ _add_fields()

void odil::pdu::PresentationContext::_add_fields ( )
protected

Add common fields.

◆ _get_syntaxes()

std::vector< std::string > odil::pdu::PresentationContext::_get_syntaxes ( std::string const &  type) const
protected

Return the Abstract or Transfer syntaxes.

◆ _make_string_item()

static Item odil::pdu::PresentationContext::_make_string_item ( std::string const &  type,
std::string const &  value 
)
staticprotected

Create an Abstract Syntax or Transfer Syntax sub-item.

◆ _set_syntaxes()

void odil::pdu::PresentationContext::_set_syntaxes ( std::string const &  type,
std::vector< std::string > const &  syntaxes 
)
protected

Set the Abstract or Transfer syntaxes.

◆ get_id()

uint8_t odil::pdu::PresentationContext::get_id ( ) const

Return the Presentation context id.

◆ get_item_type()

uint8_t odil::pdu::PresentationContext::get_item_type ( ) const

Return the Item-type.

◆ set_id()

void odil::pdu::PresentationContext::set_id ( uint8_t  id)

Set the Presentation context id.


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