Odil
A C++11 library for the DICOM standard
|
Go to the documentation of this file.
9 #ifndef _061fafd4_982e_4a7e_9eb0_29e06443ebf3
10 #define _061fafd4_982e_4a7e_9eb0_29e06443ebf3
41 AbstractSyntaxNotSupported = 3,
42 TransferSyntaxesNotSupported = 4,
57 std::string
const & abstract_syntax,
58 std::vector<std::string>
const & transfer_syntaxes,
60 Result result=Result::NoReason);
64 std::string
const & abstract_syntax,
65 std::vector<std::string>
const & transfer_syntaxes,
67 Result result=Result::NoReason);
96 UsernameAndPassword = 2,
104 Type type, std::string
const & primary_field,
105 std::string
const & secondary_field);
172 std::string
const & username, std::string
const & password);
210 std::vector<pdu::SOPClassExtendedNegotiation>
218 std::vector<pdu::SOPClassExtendedNegotiation>
const & value);
221 std::vector<pdu::SOPClassCommonExtendedNegotiation>
229 std::vector<pdu::SOPClassCommonExtendedNegotiation>
const & value);
241 std::string _called_ae_title;
242 std::string _calling_ae_title;
243 std::vector<PresentationContext> _presentation_contexts;
245 uint32_t _maximum_length;
246 uint16_t _maximum_number_operations_invoked;
247 uint16_t _maximum_number_operations_performed;
248 std::vector<pdu::SOPClassExtendedNegotiation>
249 _sop_class_extended_negotiation;
250 std::vector<pdu::SOPClassCommonExtendedNegotiation>
251 _sop_class_common_extended_negotiation;
259 #endif // _061fafd4_982e_4a7e_9eb0_29e06443ebf3
PresentationContext(uint8_t id, std::string const &abstract_syntax, std::vector< std::string > const &transfer_syntaxes, Role role, Result result=Result::NoReason)
Constructor.
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....
Definition: AssociationParameters.h:34
Type
User identity type.
Definition: AssociationParameters.h:93
UserIdentity(Type type, std::string const &primary_field, std::string const &secondary_field)
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.
std::vector< pdu::SOPClassExtendedNegotiation > get_sop_class_extended_negotiation() const
Return the list of SOP Class Extended Negotiation items.
Result
Result of the presentation context negotiation.
Definition: AssociationParameters.h:37
AssociationParameters & set_user_identity_to_none()
Do no authenticate user.
bool operator==(AssociationParameters const &other) const
Member-wise equality.
std::string const & get_called_ae_title() const
Return the called AE title, default to empty.
AssociationParameters & set_maximum_number_operations_performed(uint16_t value)
Set the maximum number of outstanding operations performed, default to 1.
AssociationParameters & set_user_identity_to_username_and_password(std::string const &username, std::string const &password)
Authenticate user using a username and a password.
UserIdentity const & get_user_identity() const
Return the user identity, default to None.
Definition: Association.h:25
User Identity, cf. PS3.8 D.3.3.7.
Definition: AssociationParameters.h:90
AssociationParameters & set_user_identity_to_kerberos(std::string const &ticket)
Authenticate user using a Kerberos ticket.
#define ODIL_API
Definition: odil.h:28
AssociationParameters & set_calling_ae_title(std::string const &value)
Set the calling AE title.
A-ASSOCIATE-AC PDU, cf. PS 3.8, 9.3.3.
Definition: AAssociateAC.h:26
std::vector< PresentationContext > const & get_presentation_contexts() const
Return the presentation contexts, default to empty.
Role role
SCU/SCP role negotiation.
Definition: AssociationParameters.h:79
Encapsulate association parameters.
Definition: AssociationParameters.h:27
A-ASSOCIATE-RQ, cf. PS 3.8, 9.3.2.
Definition: AAssociateRQ.h:26
std::string secondary_field
Secondary identity field.
Definition: AssociationParameters.h:114
pdu::AAssociateRQ as_a_associate_rq() const
Create an A-ASSOCIATE-RQ PDU.
uint32_t get_maximum_length() const
Return the maximum length of a PDU, default to 16384.
std::vector< pdu::SOPClassCommonExtendedNegotiation > get_sop_class_common_extended_negotiation() const
Return the list of SOP Class Extended Negotiation items.
bool operator==(PresentationContext const &other) const
Member-wise equality.
PresentationContext(std::string const &abstract_syntax, std::vector< std::string > const &transfer_syntaxes, Role role, Result result=Result::NoReason)
Simplified constructor, sets the id to the invalid value 0.
bool operator==(UserIdentity const &other) const
Member-wise equality.
Role
Definition: AssociationParameters.h:46
AssociationParameters & set_presentation_contexts(std::vector< PresentationContext > const &value)
Set the presentation contexts. All ids must be odd and unique.
AssociationParameters & set_user_identity_to_saml(std::string const &assertion)
Authenticate user using a SAML assertion.
AssociationParameters & set_called_ae_title(std::string const &value)
Set the called AE title.
std::vector< std::string > transfer_syntaxes
Proposed transfer syntaxes or accepted transfer syntax.
Definition: AssociationParameters.h:76
uint16_t get_maximum_number_operations_invoked() const
Return the maximum number of outstanding operations invoked.
std::string const & get_calling_ae_title() const
Return the calling AE title, default to empty.
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.
AssociationParameters & set_user_identity_to_username(std::string const &username)
Authenticate user using only a username.
uint8_t id
Identifier of the presentation context, must be odd.
Definition: AssociationParameters.h:70
uint16_t get_maximum_number_operations_performed() const
Return the maximum number of outstanding operations performed.
std::string primary_field
Primary identity field.
Definition: AssociationParameters.h:111
AssociationParameters & set_maximum_number_operations_invoked(uint16_t value)
Set the maximum number of outstanding operations invoked, default to 1.
AssociationParameters(pdu::AAssociateRQ const &pdu)
Constructor from an A-ASSOCIATE-RQ PDU.
Result result
Result of the negotiation.
Definition: AssociationParameters.h:82
Base class for all Service Class Users.
Definition: SCU.h:22
AssociationParameters & set_maximum_length(uint32_t value)
Set the maximum length of a PDU, the value 0 meaning no maximum length.
Type type
Identity type.
Definition: AssociationParameters.h:108
Base class for all Service Class Providers.
Definition: SCP.h:25
AssociationParameters(pdu::AAssociateAC const &pdu, AssociationParameters const &request)
Constructor from an A-ASSOCIATE-RQ PDU.
std::string abstract_syntax
Proposed abstract syntax.
Definition: AssociationParameters.h:73
pdu::AAssociateAC as_a_associate_ac() const
Create an A-ASSOCIATE-AC PDU.
AssociationParameters()
Constructor.