Reader ala DOM (Document Object Model) More...
#include <gdcmReader.h>
Public Member Functions | |
Reader () | |
virtual | ~Reader () |
const File & | GetFile () const |
Set/Get File. | |
File & | GetFile () |
Set/Get File. | |
virtual bool | Read () |
Main function to read a file. | |
bool | ReadSelectedTags (std::set< Tag > const &tags) |
Will only read the specified selected tags. | |
bool | ReadUpToTag (const Tag &tag, std::set< Tag > const &skiptags) |
Will read only up to Tag 'tag'. | |
void | SetFile (File &file) |
Set/Get File. | |
void | SetFileName (const char *filename) |
void | SetStream (std::istream &input_stream) |
Set the open-ed stream directly. | |
Protected Member Functions | |
bool | ReadDataSet () |
bool | ReadMetaInformation () |
bool | ReadPreamble () |
Protected Attributes | |
SmartPointer< File > | F |
Reader ala DOM (Document Object Model)
This class is a non-validating reader, it will only performs well- formedness check only, and to some extent catch known error (non well-formed document).
Detailled description here
A DataSet DOES NOT contains group 0x0002 (see FileMetaInformation)
This is really a DataSet reader. This will not make sure the dataset conform to any IOD at all. This is a completely different step. The reasoning was that user could control the IOD there lib would handle and thus we would not be able to read a DataSet if the IOD was not found Instead we separate the reading from the validation.
ChangeSequenceUltrasound.cxx, ClinicalTrialAnnotate.cxx, csa2img.cxx, DiffFile.cxx, DuplicatePCDE.cxx, ExtractEncryptedContent.cxx, FixBrokenJ2K.cxx, gdcmrtionplan.cxx, gdcmrtplan.cxx, GenSeqs.cxx, GetSequenceUltrasound.cxx, HelloWorld.cxx, LargeVRDSExplicit.cxx, PatchFile.cxx, ReadAndDumpDICOMDIR.cxx, ReadExplicitLengthSQIVR.cxx, rle2img.cxx, and TestReader.cxx.
gdcm::Reader::Reader | ( | ) | [inline] |
virtual gdcm::Reader::~Reader | ( | ) | [virtual] |
const File& gdcm::Reader::GetFile | ( | ) | const [inline] |
Set/Get File.
virtual bool gdcm::Reader::Read | ( | ) | [virtual] |
Main function to read a file.
Reimplemented in gdcm::ImageReader, and gdcm::PixmapReader.
bool gdcm::Reader::ReadDataSet | ( | ) | [protected] |
bool gdcm::Reader::ReadMetaInformation | ( | ) | [protected] |
bool gdcm::Reader::ReadPreamble | ( | ) | [protected] |
bool gdcm::Reader::ReadSelectedTags | ( | std::set< Tag > const & | tags ) |
Will only read the specified selected tags.
Will read only up to Tag 'tag'.
void gdcm::Reader::SetFileName | ( | const char * | filename ) | [inline] |
Set the filename to open. This will create a std::ifstream internally See SetStream if you are dealing with different std::istream object
void gdcm::Reader::SetStream | ( | std::istream & | input_stream ) | [inline] |
Set the open-ed stream directly.
SmartPointer<File> gdcm::Reader::F [protected] |