GDCM 2.0.17
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 Module: $URL$ 00005 00006 Copyright (c) 2006-2010 Mathieu Malaterre 00007 All rights reserved. 00008 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 #ifndef GDCMCP246EXPLICITDATAELEMENT_H 00016 #define GDCMCP246EXPLICITDATAELEMENT_H 00017 00018 #include "gdcmDataElement.h" 00019 00020 namespace gdcm 00021 { 00022 // Data Element (CP246Explicit) 00028 class GDCM_EXPORT CP246ExplicitDataElement : public DataElement 00029 { 00030 public: 00031 VL GetLength() const; 00032 00033 template <typename TSwap> 00034 std::istream &Read(std::istream &is); 00035 00036 template <typename TSwap> 00037 std::istream &ReadPreValue(std::istream &is); 00038 00039 template <typename TSwap> 00040 std::istream &ReadValue(std::istream &is); 00041 00042 template <typename TSwap> 00043 std::istream &ReadWithLength(std::istream &is, VL & length); 00044 00045 // PURPOSELY do not provide an implementation for writing ! 00046 //template <typename TSwap> 00047 //const std::ostream &Write(std::ostream &os) const; 00048 }; 00049 00050 } // end namespace gdcm 00051 00052 #include "gdcmCP246ExplicitDataElement.txx" 00053 00054 #endif //GDCMCP246EXPLICITDATAELEMENT_H