Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
Loading...
Searching...
No Matches
PresentationContextAC.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 _69f1f7a9_d252_4ccd_a2d5_5df0ac4fb054
10
#define _69f1f7a9_d252_4ccd_a2d5_5df0ac4fb054
11
12
#include <cstdint>
13
#include <istream>
14
#include <string>
15
16
#include "
odil/odil.h
"
17
#include "
odil/pdu/PresentationContext.h
"
18
19
namespace
odil
20
{
21
22
namespace
pdu
23
{
24
26
class
ODIL_API
PresentationContextAC
:
public
PresentationContext
27
{
28
public
:
30
PresentationContextAC
(
31
uint8_t
id
, std::string
const
& transfer_syntax, uint8_t result_reason);
32
34
PresentationContextAC
(std::istream & stream);
35
37
~PresentationContextAC
();
38
40
uint8_t
get_result_reason
()
const
;
41
43
void
set_result_reason
(uint8_t result_reason);
44
46
std::string
get_transfer_syntax
()
const
;
47
49
void
set_transfer_syntax
(std::string
const
& transfer_syntax);
50
};
51
52
}
53
54
}
55
56
#endif
// _69f1f7a9_d252_4ccd_a2d5_5df0ac4fb054
PresentationContext.h
odil::pdu::PresentationContextAC::PresentationContextAC
PresentationContextAC(uint8_t id, std::string const &transfer_syntax, uint8_t result_reason)
Constructor.
odil::pdu::PresentationContextAC::set_result_reason
void set_result_reason(uint8_t result_reason)
Set the Result/Reason.
odil::pdu::PresentationContextAC::get_result_reason
uint8_t get_result_reason() const
Return the Result/Reason.
odil::pdu::PresentationContextAC::get_transfer_syntax
std::string get_transfer_syntax() const
Return the Transfer Syntax.
odil::pdu::PresentationContextAC::~PresentationContextAC
~PresentationContextAC()
Destructor.
odil::pdu::PresentationContextAC::PresentationContextAC
PresentationContextAC(std::istream &stream)
Read a Presentation Context from a stream.
odil::pdu::PresentationContextAC::set_transfer_syntax
void set_transfer_syntax(std::string const &transfer_syntax)
Set the Transfer Syntax.
odil::pdu::PresentationContext::PresentationContext
PresentationContext()
Constructor.
odil::pdu
Definition
AAbort.h:21
odil
Definition
Association.h:25
odil.h
ODIL_API
#define ODIL_API
Definition
odil.h:28
src
odil
pdu
PresentationContextAC.h
Generated by
1.17.0