gdcmExplicitImplicitDataElement.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMEXPLICITIMPLICITDATAELEMENT_H
#define GDCMEXPLICITIMPLICITDATAELEMENT_H
#include "gdcmDataElement.h"
namespace gdcm
{
// Data Element (ExplicitImplicit)
class GDCM_EXPORT ExplicitImplicitDataElement : public DataElement
{
public:
VL GetLength() const;
template <typename TSwap>
std::istream &Read(std::istream &is);
template <typename TSwap>
std::istream &ReadPreValue(std::istream &is);
template <typename TSwap>
std::istream &ReadValue(std::istream &is, bool readvalues = true);
template <typename TSwap>
std::istream &ReadWithLength(std::istream &is, VL & length)
{
(void)length;
return Read<TSwap>(is);
}
// PURPOSELY do not provide an implementation for writing !
//template <typename TSwap>
//const std::ostream &Write(std::ostream &os) const;
};
} // end namespace gdcm
#include "gdcmExplicitImplicitDataElement.txx"
#endif //GDCMEXPLICITIMPLICITDATAELEMENT_H
gdcm::DataElement::DataElement
DataElement(const Tag &t=Tag(0), const VL &vl=0, const VR &vr=VR::INVALID)
Definition gdcmDataElement.h:61
gdcm::ExplicitImplicitDataElement
Class to read/write a DataElement as ExplicitImplicit Data Element.
Definition gdcmExplicitImplicitDataElement.h:30
gdcm::ExplicitImplicitDataElement::ReadPreValue
std::istream & ReadPreValue(std::istream &is)
gdcm::ExplicitImplicitDataElement::GetLength
VL GetLength() const
gdcm::ExplicitImplicitDataElement::Read
std::istream & Read(std::istream &is)
gdcm::ExplicitImplicitDataElement::ReadWithLength
std::istream & ReadWithLength(std::istream &is, VL &length)
Definition gdcmExplicitImplicitDataElement.h:44
gdcm::ExplicitImplicitDataElement::ReadValue
std::istream & ReadValue(std::istream &is, bool readvalues=true)
gdcm::VL
Value Length.
Definition gdcmVL.h:30
gdcmDataElement.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21