GDCM  2.4.5
gdcmCP246ExplicitDataElement.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 GDCMCP246EXPLICITDATAELEMENT_H
15 #define GDCMCP246EXPLICITDATAELEMENT_H
16 
17 #include "gdcmDataElement.h"
18 
19 namespace gdcm
20 {
21 // Data Element (CP246Explicit)
28 {
29 public:
30  VL GetLength() const;
31 
32  template <typename TSwap>
33  std::istream &Read(std::istream &is);
34 
35  template <typename TSwap>
36  std::istream &ReadPreValue(std::istream &is);
37 
38  template <typename TSwap>
39  std::istream &ReadValue(std::istream &is, bool readvalues = true);
40 
41  template <typename TSwap>
42  std::istream &ReadWithLength(std::istream &is, VL & length);
43 
44  // PURPOSELY do not provide an implementation for writing !
45  //template <typename TSwap>
46  //const std::ostream &Write(std::ostream &os) const;
47 };
48 
49 } // end namespace gdcm
50 
51 #include "gdcmCP246ExplicitDataElement.txx"
52 
53 #endif //GDCMCP246EXPLICITDATAELEMENT_H
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
Class to read/write a DataElement as CP246Explicit Data Element.
Definition: gdcmCP246ExplicitDataElement.h:27
Value Length.
Definition: gdcmVL.h:29
Class to represent a Data Element either Implicit or Explicit.
Definition: gdcmDataElement.h:58
Definition: gdcmASN1.h:20

Generated on Fri Sep 25 2015 17:58:22 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo