odil
C++11libraryfortheDICOMstandard
Classes | Public Member Functions | List of all members
odil::AssociationParameters Class Reference

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.
 
AssociationParametersset_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.
 
AssociationParametersset_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.
 
AssociationParametersset_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.
 
AssociationParametersset_user_identity_to_none ()
 Do no authenticate user.
 
AssociationParametersset_user_identity_to_username (std::string const &username)
 Authenticate user using only a username.
 
AssociationParametersset_user_identity_to_username_and_password (std::string const &username, std::string const &password)
 Authenticate user using a username and a password.
 
AssociationParametersset_user_identity_to_kerberos (std::string const &ticket)
 Authenticate user using a Kerberos ticket.
 
AssociationParametersset_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.
 
AssociationParametersset_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.
 
AssociationParametersset_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.
 
AssociationParametersset_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.
 

Detailed Description

Encapsulate association parameters.

Member Function Documentation

◆ set_called_ae_title()

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.

◆ set_calling_ae_title()

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.


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