GDCM 2.2.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

gdcmCP246ExplicitDataElement.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 GDCMCP246EXPLICITDATAELEMENT_H
    00015 #define GDCMCP246EXPLICITDATAELEMENT_H
    00016
    00017 #include "gdcmDataElement.h"
    00018
    00019 namespace gdcm
    00020 {
    00021 // Data Element (CP246Explicit)
    00027 class GDCM_EXPORT CP246ExplicitDataElement : public DataElement
    00028 {
    00029 public:
    00030   VL GetLength() const;
    00031
    00032   template <typename TSwap>
    00033   std::istream &Read(std::istream &is);
    00034
    00035   template <typename TSwap>
    00036   std::istream &ReadPreValue(std::istream &is);
    00037
    00038   template <typename TSwap>
    00039   std::istream &ReadValue(std::istream &is);
    00040
    00041   template <typename TSwap>
    00042   std::istream &ReadWithLength(std::istream &is, VL & length);
    00043
    00044   // PURPOSELY do not provide an implementation for writing !
    00045   //template <typename TSwap>
    00046   //const std::ostream &Write(std::ostream &os) const;
    00047 };
    00048
    00049 } // end namespace gdcm
    00050
    00051 #include "gdcmCP246ExplicitDataElement.txx"
    00052
    00053 #endif //GDCMCP246EXPLICITDATAELEMENT_H