GDCM 2.2.1

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

- File List
- File Members

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)
27 class GDCM_EXPORT CP246ExplicitDataElement : public DataElement
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);
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