gdcmDecoder.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 GDCMDECODER_H
#define GDCMDECODER_H
#include "gdcmTypes.h"
#include "gdcmDataElement.h" // FIXME
namespace gdcm
{
class TransferSyntax;
class DataElement;
class GDCM_EXPORT Decoder
{
public:
virtual ~Decoder() = default;
virtual bool CanDecode(TransferSyntax const &) const = 0;
virtual bool Decode(DataElement const &, DataElement &) { return false; }
protected:
virtual bool DecodeByStreams(std::istream &, std::ostream &) { return false; }
};
} // end namespace gdcm
#endif //GDCMDECODER_H
gdcm::DataElement
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
gdcm::Decoder
Decoder.
Definition gdcmDecoder.h:30
gdcm::Decoder::~Decoder
virtual ~Decoder()=default
gdcm::Decoder::Decode
virtual bool Decode(DataElement const &, DataElement &)
Decode.
Definition gdcmDecoder.h:38
gdcm::Decoder::DecodeByStreams
virtual bool DecodeByStreams(std::istream &, std::ostream &)
Definition gdcmDecoder.h:40
gdcm::Decoder::CanDecode
virtual bool CanDecode(TransferSyntax const &) const =0
Return whether this decoder support this transfer syntax (can decode it).
gdcm::TransferSyntax
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
gdcmDataElement.h
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21