odil
C++11libraryfortheDICOMstandard
|
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. More... | |
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. More... | |
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. | |
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.
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.