Odil
A C++11 library for the DICOM standard
|
Encapsulate association parameters. More...
#include <AssociationParameters.h>
Classes | |
struct | PresentationContext |
Presentation Context, cf. PS 3.8, 9.3.2.2, PS 3.8, 9.3.3.2, PS 3.7, D.3.3.4.1 and PS 3.7 D.3.3.4.2. More... | |
struct | UserIdentity |
User Identity, cf. PS3.8 D.3.3.7. More... | |
Public Member Functions | |
AssociationParameters () | |
Constructor. | |
AssociationParameters (pdu::AAssociateRQ const &pdu) | |
Constructor from an A-ASSOCIATE-RQ PDU. | |
AssociationParameters (pdu::AAssociateAC const &pdu, AssociationParameters const &request) | |
Constructor from an A-ASSOCIATE-RQ PDU. | |
std::string const & | get_called_ae_title () const |
Return the called AE title, default to empty. | |
AssociationParameters & | set_called_ae_title (std::string const &value) |
Set the called AE title. | |
std::string const & | get_calling_ae_title () const |
Return the calling AE title, default to empty. | |
AssociationParameters & | set_calling_ae_title (std::string const &value) |
Set the calling AE title. | |
std::vector< PresentationContext > const & | get_presentation_contexts () const |
Return the presentation contexts, default to empty. | |
AssociationParameters & | set_presentation_contexts (std::vector< PresentationContext > const &value) |
Set the presentation contexts. All ids must be odd and unique. | |
UserIdentity const & | get_user_identity () const |
Return the user identity, default to None. | |
AssociationParameters & | set_user_identity_to_none () |
Do no authenticate user. | |
AssociationParameters & | set_user_identity_to_username (std::string const &username) |
Authenticate user using only a username. | |
AssociationParameters & | set_user_identity_to_username_and_password (std::string const &username, std::string const &password) |
Authenticate user using a username and a password. | |
AssociationParameters & | set_user_identity_to_kerberos (std::string const &ticket) |
Authenticate user using a Kerberos ticket. | |
AssociationParameters & | set_user_identity_to_saml (std::string const &assertion) |
Authenticate user using a SAML assertion. | |
uint32_t | get_maximum_length () const |
Return the maximum length of a PDU, default to 16384. | |
AssociationParameters & | set_maximum_length (uint32_t value) |
Set the maximum length of a PDU, the value 0 meaning no maximum length. | |
uint16_t | get_maximum_number_operations_invoked () const |
Return the maximum number of outstanding operations invoked. | |
AssociationParameters & | set_maximum_number_operations_invoked (uint16_t value) |
Set the maximum number of outstanding operations invoked, default to 1. | |
uint16_t | get_maximum_number_operations_performed () const |
Return the maximum number of outstanding operations performed. | |
AssociationParameters & | set_maximum_number_operations_performed (uint16_t value) |
Set the maximum number of outstanding operations performed, default to 1. | |
std::vector< pdu::SOPClassExtendedNegotiation > | get_sop_class_extended_negotiation () const |
Return the list of SOP Class Extended Negotiation items. | |
void | set_sop_class_extended_negotiation (std::vector< pdu::SOPClassExtendedNegotiation > const &value) |
Set the list of SOP Class Extended Negotiation items, default to an empty list. | |
std::vector< pdu::SOPClassCommonExtendedNegotiation > | get_sop_class_common_extended_negotiation () const |
Return the list of SOP Class Extended Negotiation items. | |
void | set_sop_class_common_extended_negotiation (std::vector< pdu::SOPClassCommonExtendedNegotiation > const &value) |
Set the list of SOP Class Common Extend Negotiation items, default to an empty list. | |
pdu::AAssociateRQ | as_a_associate_rq () const |
Create an A-ASSOCIATE-RQ PDU. | |
pdu::AAssociateAC | as_a_associate_ac () const |
Create an A-ASSOCIATE-AC PDU. | |
bool | operator== (AssociationParameters const &other) const |
Member-wise equality. | |
Encapsulate association parameters.
odil::AssociationParameters::AssociationParameters | ( | ) |
Constructor.
odil::AssociationParameters::AssociationParameters | ( | pdu::AAssociateRQ const & | pdu | ) |
Constructor from an A-ASSOCIATE-RQ PDU.
odil::AssociationParameters::AssociationParameters | ( | pdu::AAssociateAC const & | pdu, |
AssociationParameters const & | request | ||
) |
Constructor from an A-ASSOCIATE-RQ PDU.
pdu::AAssociateAC odil::AssociationParameters::as_a_associate_ac | ( | ) | const |
Create an A-ASSOCIATE-AC PDU.
pdu::AAssociateRQ odil::AssociationParameters::as_a_associate_rq | ( | ) | const |
Create an A-ASSOCIATE-RQ PDU.
std::string const & odil::AssociationParameters::get_called_ae_title | ( | ) | const |
Return the called AE title, default to empty.
std::string const & odil::AssociationParameters::get_calling_ae_title | ( | ) | const |
Return the calling AE title, default to empty.
uint32_t odil::AssociationParameters::get_maximum_length | ( | ) | const |
Return the maximum length of a PDU, default to 16384.
uint16_t odil::AssociationParameters::get_maximum_number_operations_invoked | ( | ) | const |
Return the maximum number of outstanding operations invoked.
uint16_t odil::AssociationParameters::get_maximum_number_operations_performed | ( | ) | const |
Return the maximum number of outstanding operations performed.
std::vector< PresentationContext > const & odil::AssociationParameters::get_presentation_contexts | ( | ) | const |
Return the presentation contexts, default to empty.
std::vector< pdu::SOPClassCommonExtendedNegotiation > odil::AssociationParameters::get_sop_class_common_extended_negotiation | ( | ) | const |
Return the list of SOP Class Extended Negotiation items.
std::vector< pdu::SOPClassExtendedNegotiation > odil::AssociationParameters::get_sop_class_extended_negotiation | ( | ) | const |
Return the list of SOP Class Extended Negotiation items.
UserIdentity const & odil::AssociationParameters::get_user_identity | ( | ) | const |
Return the user identity, default to None.
bool odil::AssociationParameters::operator== | ( | AssociationParameters const & | other | ) | const |
Member-wise equality.
AssociationParameters & odil::AssociationParameters::set_called_ae_title | ( | std::string const & | value | ) |
Set the called AE title.
An exception is raised if the value is empty or if it is longer than 16 characters.
AssociationParameters & odil::AssociationParameters::set_calling_ae_title | ( | std::string const & | value | ) |
Set the calling AE title.
An exception is raised if the value is empty or if it is longer than 16 characters.
AssociationParameters & odil::AssociationParameters::set_maximum_length | ( | uint32_t | value | ) |
Set the maximum length of a PDU, the value 0 meaning no maximum length.
AssociationParameters & odil::AssociationParameters::set_maximum_number_operations_invoked | ( | uint16_t | value | ) |
Set the maximum number of outstanding operations invoked, default to 1.
AssociationParameters & odil::AssociationParameters::set_maximum_number_operations_performed | ( | uint16_t | value | ) |
Set the maximum number of outstanding operations performed, default to 1.
AssociationParameters & odil::AssociationParameters::set_presentation_contexts | ( | std::vector< PresentationContext > const & | value | ) |
Set the presentation contexts. All ids must be odd and unique.
void odil::AssociationParameters::set_sop_class_common_extended_negotiation | ( | std::vector< pdu::SOPClassCommonExtendedNegotiation > const & | value | ) |
Set the list of SOP Class Common Extend Negotiation items, default to an empty list.
void odil::AssociationParameters::set_sop_class_extended_negotiation | ( | std::vector< pdu::SOPClassExtendedNegotiation > const & | value | ) |
Set the list of SOP Class Extended Negotiation items, default to an empty list.
AssociationParameters & odil::AssociationParameters::set_user_identity_to_kerberos | ( | std::string const & | ticket | ) |
Authenticate user using a Kerberos ticket.
AssociationParameters & odil::AssociationParameters::set_user_identity_to_none | ( | ) |
Do no authenticate user.
AssociationParameters & odil::AssociationParameters::set_user_identity_to_saml | ( | std::string const & | assertion | ) |
Authenticate user using a SAML assertion.
AssociationParameters & odil::AssociationParameters::set_user_identity_to_username | ( | std::string const & | username | ) |
Authenticate user using only a username.
AssociationParameters & odil::AssociationParameters::set_user_identity_to_username_and_password | ( | std::string const & | username, |
std::string const & | password | ||
) |
Authenticate user using a username and a password.