Odil
A C++11 library for the DICOM standard
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"
18#include "odil/pdu/Object.h"
20
21namespace odil
22{
23
24namespace pdu
25{
26
29{
30public:
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
70
73
76
79
80private:
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
A-ASSOCIATE-RQ and A-ASSOCIATE-AC PDU, cf. PS 3.8, 9.3.2 and 9.3.3.
Definition: AAssociate.h:29
void set_user_information(UserInformation const &value)
Set the User Information sub-item.
AAssociate(std::istream &stream)
Constructor for binary data.
virtual ~AAssociate()=0
Destructor.
std::string get_calling_ae_title() const
Return the calling AE title.
uint16_t get_protocol_version() const
Return the protocol version.
void set_protocol_version(uint16_t value)
Set the protocol version.
void set_called_ae_title(std::string const &value)
Set the called AE title.
std::string get_called_ae_title() const
Return the called AE title.
UserInformation get_user_information() const
Return the User Information sub-item.
void set_application_context(ApplicationContext const &value)
Set the Application Context sub-item.
ApplicationContext get_application_context() const
Return the Application Context sub-item.
AAssociate()
Constructor.
void set_calling_ae_title(std::string const &value)
Set the calling AE title.
Application Context item, (PS 3.8, 9.3.2.1).
Definition: ApplicationContext.h:28
Base class for all PDU-related high-level objects (PDU, items and sub-items).
Definition: Object.h:28
User Information Item Structure (PS 3.8, 9.3.2.3 and 9.3.3.3).
Definition: UserInformation.h:30
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28