Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
AAbort.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 _536f93f0_914e_40ff_8917_36644acbc4b1
10#define _536f93f0_914e_40ff_8917_36644acbc4b1
11
12#include <istream>
13
14#include "odil/odil.h"
15#include "odil/pdu/Object.h"
16
17namespace odil
18{
19
20namespace pdu
21{
22
24class ODIL_API AAbort: public Object
25{
26public:
28 AAbort(unsigned char source, unsigned char reason);
29
31 AAbort(std::istream & stream);
32
34 unsigned char get_source() const;
35
37 void set_source(unsigned char source);
38
40 unsigned char get_reason() const;
41
43 void set_reason(unsigned char reason);
44};
45
46}
47
48}
49
50#endif // _536f93f0_914e_40ff_8917_36644acbc4b1
A-ABORT PDU, cf. PS 3.8, 9.3.8.
Definition AAbort.h:25
unsigned char get_source() const
Return the source.
unsigned char get_reason() const
Return the reason.
AAbort(unsigned char source, unsigned char reason)
Constructor.
void set_source(unsigned char source)
Set the source, must be 0, 1 or 2.
void set_reason(unsigned char reason)
Set the reason, must be between 0 and 6.
AAbort(std::istream &stream)
Constructor for binary data.
Base class for all PDU-related high-level objects (PDU, items and sub-items).
Definition Object.h:28
Definition Association.h:25
#define ODIL_API
Definition odil.h:28