Odil
A C++11 library for the DICOM standard
PresentationContextRQ.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 _e6e42ffd_7318_48f5_b35a_d44093564044
10#define _e6e42ffd_7318_48f5_b35a_d44093564044
11
12#include <cstdint>
13#include <istream>
14#include <string>
15#include <vector>
16
17#include "odil/odil.h"
19
20namespace odil
21{
22
23namespace pdu
24{
25
28{
29public:
32 uint8_t id, std::string const & abstract_syntax,
33 std::vector<std::string> const & transfer_syntaxes);
34
36 PresentationContextRQ(std::istream & stream);
37
40
42 std::string get_abstract_syntax() const;
43
45 void set_abstract_syntax(std::string const & abstract_syntax);
46
48 std::vector<std::string> get_transfer_syntaxes() const;
49
52 std::vector<std::string> const & transfer_syntaxes);
53};
54
55}
56
57}
58
59#endif // _e6e42ffd_7318_48f5_b35a_d44093564044
Presentation Context item for a A-ASSOCIATE-RQ PDU (PS 3.8, 9.3.2.2).
Definition: PresentationContextRQ.h:28
std::vector< std::string > get_transfer_syntaxes() const
Return the Transfer Syntaxes.
PresentationContextRQ(std::istream &stream)
Read a Presentation Context from a stream.
std::string get_abstract_syntax() const
Return the Abstract Syntax.
void set_abstract_syntax(std::string const &abstract_syntax)
Set the Abstract Syntax.
PresentationContextRQ(uint8_t id, std::string const &abstract_syntax, std::vector< std::string > const &transfer_syntaxes)
Constructor.
void set_transfer_syntaxes(std::vector< std::string > const &transfer_syntaxes)
Set the Transfer Syntax sub-items.
Presentation Context item, either for a A-ASSOCIATE-RQ PDU (PS 3.8, 9.3.2.2) or for a A-ASSOCIATE-AC ...
Definition: PresentationContext.h:31
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28