GDCM: gdcmAAbortPDU.h Source File

GDCM 3.0.26

gdcmAAbortPDU.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMAABORTPDU_H
15#define GDCMAABORTPDU_H
16
17#include "gdcmTypes.h"
18#include "gdcmBasePDU.h"
19
20namespace gdcm
21{
22
23 namespace network
24{
25
30 class GDCM_EXPORT AAbortPDU : public BasePDU
31{
32public:
33 AAbortPDU();
34 std::istream &Read(std::istream &is) override;
35 const std::ostream &Write(std::ostream &os) const override;
36
38 size_t Size() const override;
39 void Print(std::ostream &os) const override;
40
41 bool IsLastFragment() const override { return true; }
42
43 void SetSource(const uint8_t s);
44 void SetReason(const uint8_t r);
45
46private:
47 static const uint8_t ItemType; // PDUType ?
48 static const uint8_t Reserved2;
49 uint32_t ItemLength; // PDU Length
50 static const uint8_t Reserved7;
51 static const uint8_t Reserved8;
52 uint8_t Source;
53 uint8_t Reason; // diag
54};
55
56} // end namespace network
57
58} // end namespace gdcm
59
60#endif //GDCMAABORTPDU_H
gdcm::network::AAbortPDU::SetSource
void SetSource(const uint8_t s)
gdcm::network::AAbortPDU::SetReason
void SetReason(const uint8_t r)
gdcm::network::AAbortPDU::Print
void Print(std::ostream &os) const override
gdcm::network::AAbortPDU::Read
std::istream & Read(std::istream &is) override
gdcm::network::AAbortPDU::Size
size_t Size() const override
gdcm::network::AAbortPDU::AAbortPDU
AAbortPDU()
gdcm::network::AAbortPDU::IsLastFragment
bool IsLastFragment() const override
Definition gdcmAAbortPDU.h:41
gdcm::network::AAbortPDU::Write
const std::ostream & Write(std::ostream &os) const override
gdcm::network::BasePDU
BasePDU.
Definition gdcmBasePDU.h:51
gdcmBasePDU.h
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm::network
Definition gdcmAAbortPDU.h:24
gdcm
Definition gdcmASN1.h:21