Odil
A C++11 library for the DICOM standard
Public Types | Public Member Functions | Public Attributes | List of all members
odil::AssociationParameters::PresentationContext Struct Reference

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...

#include <AssociationParameters.h>

Public Types

enum  Result {
  Result::Acceptance = 0, Result::UserRejection = 1, Result::NoReason = 2, Result::AbstractSyntaxNotSupported = 3,
  Result::TransferSyntaxesNotSupported = 4
}
 Result of the presentation context negotiation. More...
 

Public Member Functions

 PresentationContext (uint8_t id, std::string const &abstract_syntax, std::vector< std::string > const &transfer_syntaxes, bool scu_role_support, bool scp_role_support, Result result=Result::NoReason)
 Constructor. More...
 
 PresentationContext (std::string const &abstract_syntax, std::vector< std::string > const &transfer_syntaxes, bool scu_role_support, bool scp_role_support, Result result=Result::NoReason)
 Simplified constructor, sets the id to the invalid value 0. More...
 
bool operator== (PresentationContext const &other) const
 Member-wise equality. More...
 

Public Attributes

uint8_t id
 Identifier of the presentation context, must be odd. More...
 
std::string abstract_syntax
 Proposed abstract syntax. More...
 
std::vector< std::string > transfer_syntaxes
 Proposed transfer syntaxes or accepted transfer syntax. More...
 
bool scu_role_support
 Support for SCU role. More...
 
bool scp_role_support
 Support for SCP role. More...
 
Result result
 Result of the negotiation. More...
 

Detailed Description

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.

Member Enumeration Documentation

◆ Result

Result of the presentation context negotiation.

Enumerator
Acceptance 
UserRejection 
NoReason 
AbstractSyntaxNotSupported 
TransferSyntaxesNotSupported 

Constructor & Destructor Documentation

◆ PresentationContext() [1/2]

odil::AssociationParameters::PresentationContext::PresentationContext ( uint8_t  id,
std::string const &  abstract_syntax,
std::vector< std::string > const &  transfer_syntaxes,
bool  scu_role_support,
bool  scp_role_support,
Result  result = Result::NoReason 
)

Constructor.

◆ PresentationContext() [2/2]

odil::AssociationParameters::PresentationContext::PresentationContext ( std::string const &  abstract_syntax,
std::vector< std::string > const &  transfer_syntaxes,
bool  scu_role_support,
bool  scp_role_support,
Result  result = Result::NoReason 
)

Simplified constructor, sets the id to the invalid value 0.

Member Function Documentation

◆ operator==()

bool odil::AssociationParameters::PresentationContext::operator== ( PresentationContext const &  other) const

Member-wise equality.

Member Data Documentation

◆ abstract_syntax

std::string odil::AssociationParameters::PresentationContext::abstract_syntax

Proposed abstract syntax.

◆ id

uint8_t odil::AssociationParameters::PresentationContext::id

Identifier of the presentation context, must be odd.

◆ result

Result odil::AssociationParameters::PresentationContext::result

Result of the negotiation.

◆ scp_role_support

bool odil::AssociationParameters::PresentationContext::scp_role_support

Support for SCP role.

◆ scu_role_support

bool odil::AssociationParameters::PresentationContext::scu_role_support

Support for SCU role.

◆ transfer_syntaxes

std::vector<std::string> odil::AssociationParameters::PresentationContext::transfer_syntaxes

Proposed transfer syntaxes or accepted transfer syntax.


The documentation for this struct was generated from the following file: