Odil
A C++11 library for the DICOM standard
|
Presentation Context item for a A-ASSOCIATE-AC PDU (PS 3.8, 9.3.3.2). More...
#include <PresentationContextAC.h>
Public Member Functions | |
PresentationContextAC (uint8_t id, std::string const &transfer_syntax, uint8_t result_reason) | |
Constructor. | |
PresentationContextAC (std::istream &stream) | |
Read a Presentation Context from a stream. | |
~PresentationContextAC () | |
Destructor. | |
uint8_t | get_result_reason () const |
Return the Result/Reason. | |
void | set_result_reason (uint8_t result_reason) |
Set the Result/Reason. | |
std::string | get_transfer_syntax () const |
Return the Transfer Syntax. | |
void | set_transfer_syntax (std::string const &transfer_syntax) |
Set the Transfer Syntax. | |
![]() | |
PresentationContext () | |
Constructor. | |
PresentationContext (std::istream &stream) | |
Read from a stream. | |
virtual | ~PresentationContext ()=0 |
Destructor, make the class pure virtual. | |
uint8_t | get_item_type () const |
Return the Item-type. | |
uint8_t | get_id () const |
Return the Presentation context id. | |
void | set_id (uint8_t id) |
Set the Presentation context id. | |
![]() | |
virtual | ~Object () |
Destructor, makes the type polymorphic. | |
Item const & | get_item () const |
Get the underlying item. | |
Additional Inherited Members | |
![]() | |
void | _add_fields () |
Add common fields. | |
std::vector< std::string > | _get_syntaxes (std::string const &type) const |
Return the Abstract or Transfer syntaxes. | |
void | _set_syntaxes (std::string const &type, std::vector< std::string > const &syntaxes) |
Set the Abstract or Transfer syntaxes. | |
![]() | |
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. | |
![]() | |
static Item | _make_string_item (std::string const &type, std::string const &value) |
Create an Abstract Syntax or Transfer Syntax sub-item. | |
![]() | |
Item | _item |
Presentation Context item for a A-ASSOCIATE-AC PDU (PS 3.8, 9.3.3.2).
odil::pdu::PresentationContextAC::PresentationContextAC | ( | uint8_t | id, |
std::string const & | transfer_syntax, | ||
uint8_t | result_reason | ||
) |
Constructor.
odil::pdu::PresentationContextAC::PresentationContextAC | ( | std::istream & | stream | ) |
Read a Presentation Context from a stream.
odil::pdu::PresentationContextAC::~PresentationContextAC | ( | ) |
Destructor.
uint8_t odil::pdu::PresentationContextAC::get_result_reason | ( | ) | const |
Return the Result/Reason.
std::string odil::pdu::PresentationContextAC::get_transfer_syntax | ( | ) | const |
Return the Transfer Syntax.
void odil::pdu::PresentationContextAC::set_result_reason | ( | uint8_t | result_reason | ) |
Set the Result/Reason.
void odil::pdu::PresentationContextAC::set_transfer_syntax | ( | std::string const & | transfer_syntax | ) |
Set the Transfer Syntax.