Odil
A C++11 library for the DICOM standard
src
odil
pdu
AAssociate.h
Go to the documentation of this file.
1
/*************************************************************************
2
* odil - Copyright (C) Universite de Strasbourg
3
* Distributed under the terms of the CeCILL-B license, as published by
4
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6
* for details.
7
************************************************************************/
8
9
#ifndef _00e9792a_98a8_4ca7_9272_43dcd7e331ea
10
#define _00e9792a_98a8_4ca7_9272_43dcd7e331ea
11
12
#include <cstdint>
13
#include <istream>
14
#include <string>
15
16
#include "
odil/odil.h
"
17
#include "
odil/pdu/ApplicationContext.h
"
18
#include "
odil/pdu/Object.h
"
19
#include "
odil/pdu/UserInformation.h
"
20
21
namespace
odil
22
{
23
24
namespace
pdu
25
{
26
28
class
ODIL_API
AAssociate
:
public
Object
29
{
30
public
:
32
AAssociate
();
33
35
AAssociate
(std::istream & stream);
36
38
virtual
~AAssociate
() =0;
39
41
uint16_t
get_protocol_version
()
const
;
42
44
void
set_protocol_version
(uint16_t value);
45
47
std::string
get_called_ae_title
()
const
;
48
55
void
set_called_ae_title
(std::string
const
& value);
56
58
std::string
get_calling_ae_title
()
const
;
59
66
void
set_calling_ae_title
(std::string
const
& value);
67
69
ApplicationContext
get_application_context
()
const
;
70
72
void
set_application_context
(
ApplicationContext
const
& value);
73
75
UserInformation
get_user_information
()
const
;
76
78
void
set_user_information
(
UserInformation
const
& value);
79
80
private
:
82
static
std::string _encode_ae_title(std::string
const
& value);
83
85
static
std::string _decode_ae_title(std::string
const
& value);
86
};
87
88
}
89
90
}
91
92
#endif // _00e9792a_98a8_4ca7_9272_43dcd7e331ea
odil::pdu::AAssociate::set_calling_ae_title
void set_calling_ae_title(std::string const &value)
Set the calling AE title.
odil::pdu::Object
Base class for all PDU-related high-level objects (PDU, items and sub-items).
Definition:
Object.h:28
odil::pdu::AAssociate::set_protocol_version
void set_protocol_version(uint16_t value)
Set the protocol version.
odil::pdu::AAssociate::get_user_information
UserInformation get_user_information() const
Return the User Information sub-item.
odil
Definition:
Association.h:25
ODIL_API
#define ODIL_API
Definition:
odil.h:28
odil::pdu::ApplicationContext
Application Context item, (PS 3.8, 9.3.2.1).
Definition:
ApplicationContext.h:28
odil::pdu::AAssociate::get_calling_ae_title
std::string get_calling_ae_title() const
Return the calling AE title.
odil::pdu::AAssociate::AAssociate
AAssociate()
Constructor.
odil::pdu::UserInformation
User Information Item Structure (PS 3.8, 9.3.2.3 and 9.3.3.3).
Definition:
UserInformation.h:30
odil.h
odil::pdu::AAssociate
A-ASSOCIATE-RQ and A-ASSOCIATE-AC PDU, cf. PS 3.8, 9.3.2 and 9.3.3.
Definition:
AAssociate.h:29
odil::pdu::AAssociate::set_user_information
void set_user_information(UserInformation const &value)
Set the User Information sub-item.
Object.h
odil::pdu::AAssociate::set_called_ae_title
void set_called_ae_title(std::string const &value)
Set the called AE title.
odil::pdu::AAssociate::get_protocol_version
uint16_t get_protocol_version() const
Return the protocol version.
odil::pdu::AAssociate::AAssociate
AAssociate(std::istream &stream)
Constructor for binary data.
odil::pdu::AAssociate::~AAssociate
virtual ~AAssociate()=0
Destructor.
odil::pdu::AAssociate::get_called_ae_title
std::string get_called_ae_title() const
Return the called AE title.
UserInformation.h
odil::pdu::AAssociate::set_application_context
void set_application_context(ApplicationContext const &value)
Set the Application Context sub-item.
odil::pdu::AAssociate::get_application_context
ApplicationContext get_application_context() const
Return the Application Context sub-item.
ApplicationContext.h
Generated by
1.8.20