DCMTK
Version 3.6.1 20170228
OFFIS DICOM Toolkit
|
input stream that reads from a plain file More...
Public Member Functions | |
DcmInputFileStream (const OFFilename &filename, offile_off_t offset=0) | |
constructor More... | |
virtual | ~DcmInputFileStream () |
destructor | |
virtual DcmInputStreamFactory * | newFactory () const |
creates a new factory object for the current stream and stream position. More... | |
![]() | |
virtual | ~DcmInputStream () |
destructor | |
virtual OFBool | good () const |
returns the status of the stream. More... | |
virtual OFCondition | status () const |
returns the status of the stream as an OFCondition object. More... | |
virtual OFBool | eos () |
returns true if the producer is at the end of stream. More... | |
virtual offile_off_t | avail () |
returns the minimum number of bytes that can be read with the next call to read(). More... | |
virtual offile_off_t | read (void *buf, offile_off_t buflen) |
reads as many bytes as possible into the given block. More... | |
virtual offile_off_t | skip (offile_off_t skiplen) |
skips over the given number of bytes (or less) More... | |
virtual offile_off_t | tell () const |
returns the total number of bytes read from the stream so far More... | |
virtual OFCondition | installCompressionFilter (E_StreamCompression filterType) |
installs a compression filter for the given stream compression type, which should be neither ESC_none nor ESC_unsupported. More... | |
virtual void | mark () |
marks the current stream position for a later putback operation, overwriting a possibly existing prior putback mark. More... | |
virtual void | putback () |
resets the stream to the position previously marked with setPutbackMark(). More... | |
Private Member Functions | |
DcmInputFileStream (const DcmInputFileStream &) | |
private unimplemented copy constructor | |
DcmInputFileStream & | operator= (const DcmInputFileStream &) |
private unimplemented copy assignment operator | |
Private Attributes | |
DcmFileProducer | producer_ |
the final producer of the filter chain | |
OFFilename | filename_ |
filename | |
Additional Inherited Members | |
![]() | |
DcmInputStream (DcmProducer *initial) | |
protected constructor, to be called from derived class constructor More... | |
const DcmProducer * | currentProducer () const |
returns pointer to current producer object | |
input stream that reads from a plain file
DcmInputFileStream::DcmInputFileStream | ( | const OFFilename & | filename, |
offile_off_t | offset = 0 |
||
) |
constructor
filename | name of file to be opened (may contain wide chars if support enabled) |
offset | byte offset to skip from the start of file |
|
virtual |
creates a new factory object for the current stream and stream position.
When activated, the factory will be able to create new DcmInputStream delivering the same data as the current stream. Used to defer loading of value fields until accessed. If no factory object can be created (e.g. because the stream is not seekable), returns NULL.
Implements DcmInputStream.