odil
C++11libraryfortheDICOMstandard
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
odil::Reader Class Reference

Read DICOM objects from a stream. More...

#include <Reader.h>

Public Member Functions

 Reader (std::istream &stream, std::string const &transfer_syntax, bool keep_group_length=false)
 Build a reader, derive byte ordering and explicit-ness of VR from transfer syntax.
 
DataSet read_data_set (std::function< bool(Tag const &)> halt_condition=[](Tag const &){return false;}) const
 Read a data set.
 
Tag read_tag () const
 Read a tag.
 
Element read_element (Tag const &tag=Tag(0xffff, 0xffff), DataSet const &data_set=DataSet()) const
 Read an element (VR and value), try to guess the VR from the tag, partially read data set, and transfer syntax for implicit VR transfer syntaxes.
 

Static Public Member Functions

static std::pair< DataSet, DataSetread_file (std::istream &stream, bool keep_group_length=false, std::function< bool(Tag const &)> halt_condition=[](Tag const &){return false;})
 Return the meta-data header and data set stored in the stream.
 

Public Attributes

std::istream & stream
 Input stream.
 
std::string transfer_syntax
 Transfer syntax used to read the file.
 
ByteOrdering byte_ordering
 Endianness.
 
bool explicit_vr
 Explicit-ness of the Value Representations.
 
bool keep_group_length
 Flag to keep or discard group length tags.
 

Detailed Description

Read DICOM objects from a stream.


The documentation for this class was generated from the following files: