GDCM  2.2.0
gdcmAAbortPDU.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 GDCMAABORTPDU_H
00015 #define GDCMAABORTPDU_H
00016 
00017 #include "gdcmTypes.h"
00018 #include "gdcmBasePDU.h"
00019 
00020 namespace gdcm
00021 {
00022 
00023 namespace network
00024 {
00025 
00030 class GDCM_EXPORT AAbortPDU : public BasePDU
00031 {
00032 public:
00033   AAbortPDU();
00034   std::istream &Read(std::istream &is);
00035   const std::ostream &Write(std::ostream &os) const;
00036 
00038   size_t Size() const;
00039   void Print(std::ostream &os) const;
00040 
00041   bool IsLastFragment() const { return true; }
00042 
00043 private:
00044   static const uint8_t ItemType; // PDUType ?
00045   static const uint8_t Reserved2;
00046   uint32_t ItemLength; // PDU Length
00047   static const uint8_t Reserved7;
00048   static const uint8_t Reserved8;
00049   uint8_t Source;
00050   uint8_t Reason; // diag
00051 };
00052 
00053 } // end namespace network
00054 
00055 } // end namespace gdcm
00056 
00057 #endif //GDCMAABORTPDU_H

Generated on Fri May 25 2012 13:12:37 for GDCM by doxygen 1.8.0
SourceForge.net Logo