Odil
A C++11 library for the DICOM standard
AAssociateRJ.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 _3980566c_9185_40a2_8e7d_6286c2cd1959
10 #define _3980566c_9185_40a2_8e7d_6286c2cd1959
11 
12 #include "odil/odil.h"
13 #include "odil/pdu/Object.h"
14 
15 namespace odil
16 {
17 
18 namespace pdu
19 {
20 
23 {
24 public:
27  unsigned char result, unsigned char source, unsigned char reason);
28 
30  AAssociateRJ(std::istream & stream);
31 
33  unsigned char get_result() const;
34 
36  void set_result(unsigned char result);
37 
39  unsigned char get_source() const;
40 
42  void set_source(unsigned char source);
43 
45  unsigned char get_reason() const;
46 
48  void set_reason(unsigned char reason);
49 };
50 
51 }
52 
53 }
54 
55 #endif // _3980566c_9185_40a2_8e7d_6286c2cd1959
A-ASSOCIATE-RJ PDU, cf. PS 3.8, 9.3.4.
Definition: AAssociateRJ.h:23
AAssociateRJ(unsigned char result, unsigned char source, unsigned char reason)
Constructor.
void set_source(unsigned char source)
Set the source, must be 1, 2 or 3.
unsigned char get_source() const
Return the source.
unsigned char get_reason() const
Return the reason.
void set_result(unsigned char result)
Set the result, must be 1 or 2.
void set_reason(unsigned char reason)
Set the reason.
AAssociateRJ(std::istream &stream)
Constructor from stream.
unsigned char get_result() const
Return the result.
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