GDCM: gdcmCP246ExplicitDataElement.h Source File

GDCM 3.2.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
19namespace gdcm
20{
21// Data Element (CP246Explicit)
27 class GDCM_EXPORT CP246ExplicitDataElement : public DataElement
28{
29public:
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
gdcm::CP246ExplicitDataElement
Class to read/write a DataElement as CP246Explicit Data Element.
Definition gdcmCP246ExplicitDataElement.h:28
gdcm::CP246ExplicitDataElement::ReadPreValue
std::istream & ReadPreValue(std::istream &is)
gdcm::CP246ExplicitDataElement::ReadWithLength
std::istream & ReadWithLength(std::istream &is, VL &length)
gdcm::CP246ExplicitDataElement::Read
std::istream & Read(std::istream &is)
gdcm::CP246ExplicitDataElement::ReadValue
std::istream & ReadValue(std::istream &is, bool readvalues=true)
gdcm::CP246ExplicitDataElement::GetLength
VL GetLength() const
gdcm::DataElement::DataElement
DataElement(const Tag &t=Tag(0), const VL &vl=0, const VR &vr=VR::INVALID)
Definition gdcmDataElement.h:61
gdcm::VL
Value Length.
Definition gdcmVL.h:30
gdcmDataElement.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21