GDCM 3.0.24
gdcmMaximumLengthSub.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 GDCMMAXIMUMLENGTHSUB_H
15#define GDCMMAXIMUMLENGTHSUB_H
16
17#include "gdcmTypes.h"
18
19namespace gdcm
20{
21
22namespace network
23{
24
37{
38public:
40 std::istream &Read(std::istream &is);
41 const std::ostream &Write(std::ostream &os) const;
42
43 size_t Size() const;
44
45 uint32_t GetMaximumLength() const { return MaximumLength; }
46 void SetMaximumLength(uint32_t maximumlength);
47
48 void Print(std::ostream &os) const;
49
50private:
51 static const uint8_t ItemType;
52 static const uint8_t Reserved2;
53 uint16_t ItemLength;
54 uint32_t MaximumLength;
55};
56
57} // end namespace network
58
59} // end namespace gdcm
60
61#endif //GDCMMAXIMUMLENGTHSUB_H
MaximumLengthSub.
Definition gdcmMaximumLengthSub.h:37
const std::ostream & Write(std::ostream &os) const
uint32_t GetMaximumLength() const
Definition gdcmMaximumLengthSub.h:45
std::istream & Read(std::istream &is)
void Print(std::ostream &os) const
void SetMaximumLength(uint32_t maximumlength)
Definition gdcmASN1.h:21