GDCM  2.2.0
gdcmMaximumLengthSub.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004 
00005   Copyright (c) 2006-2011 Mathieu Malaterre
00006   All rights reserved.
00007   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00014 #ifndef GDCMMAXIMUMLENGTHSUB_H
00015 #define GDCMMAXIMUMLENGTHSUB_H
00016 
00017 #include "gdcmTypes.h"
00018 
00019 namespace gdcm
00020 {
00021 
00022 namespace network
00023 {
00024 
00036 class MaximumLengthSub
00037 {
00038 public:
00039   MaximumLengthSub();
00040   std::istream &Read(std::istream &is);
00041   const std::ostream &Write(std::ostream &os) const;
00042 
00043   size_t Size() const;
00044 
00045   uint32_t GetMaximumLength() const { return MaximumLength; }
00046   void SetMaximumLength(uint32_t maximumlength) { MaximumLength = maximumlength; }
00047 
00048 private:
00049   static const uint8_t ItemType;
00050   static const uint8_t Reserved2;
00051   uint16_t ItemLength;
00052   uint32_t MaximumLength;
00053 };
00054 
00055 } // end namespace network
00056 
00057 } // end namespace gdcm
00058 
00059 #endif //GDCMMAXIMUMLENGTHSUB_H

Generated on Sun Jun 3 2012 14:19:44 for GDCM by doxygen 1.8.0
SourceForge.net Logo