Inheritance diagram for DcmBufferProducer:
Public Member Functions | |
DcmBufferProducer () | |
constructor | |
virtual | ~DcmBufferProducer () |
destructor | |
virtual OFBool | good () const |
returns the status of the producer. | |
virtual OFCondition | status () const |
returns the status of the producer as an OFCondition object. | |
virtual OFBool | eos () const |
returns true if the producer is at the end of stream. | |
virtual Uint32 | avail () const |
returns the minimum number of bytes that can be read with the next call to read(). | |
virtual Uint32 | read (void *buf, Uint32 buflen) |
reads as many bytes as possible into the given block. | |
virtual Uint32 | skip (Uint32 skiplen) |
skips over the given number of bytes (or less) | |
virtual void | putback (Uint32 num) |
resets the stream to the position by the given number of bytes. | |
virtual void | setBuffer (const void *buf, Uint32 buflen) |
adds the content of the given buffer to the input stream. | |
virtual void | releaseBuffer () |
releases the current buffer. | |
virtual void | setEos () |
marks the end of stream, i.e. | |
Private Member Functions | |
DcmBufferProducer (const DcmBufferProducer &) | |
private unimplemented copy constructor | |
DcmBufferProducer & | operator= (const DcmBufferProducer &) |
private unimplemented copy assignment operator | |
Private Attributes | |
unsigned char * | buffer_ |
the user buffer we're actually reading from | |
unsigned char * | backup_ |
the backup buffer | |
Uint32 | bufSize_ |
size of the user buffer, in bytes | |
Uint32 | bufIndex_ |
number of bytes read from the user buffer | |
Uint32 | backupIndex_ |
number of bytes read from the backup buffer | |
Uint32 | backupStart_ |
index of first valid byte in backup buffer, for putback | |
OFCondition | status_ |
status | |
OFBool | eosflag_ |
true if setEos has been called before |
Used for DICOM network communication.
Definition at line 45 of file dcistrmb.h.
|
returns the minimum number of bytes that can be read with the next call to read(). The DcmObject read methods rely on avail to return a value > 0 if there is no I/O suspension since certain data such as tag and length are only read "en bloc", i.e. all or nothing.
Implements DcmProducer. |
|
returns true if the producer is at the end of stream.
Implements DcmProducer. |
|
returns the status of the producer. Unless the status is good, the producer will not permit any operation.
Implements DcmProducer. |
|
resets the stream to the position by the given number of bytes.
Implements DcmProducer. |
|
reads as many bytes as possible into the given block.
Implements DcmProducer. |
|
releases the current buffer. Should only be called when the content of the buffer has been read as far as possible. Pending input from the buffer is copied into an internal backup buffer if necessary. If an overflow condition occurs, the producer status becomes bad. |
|
adds the content of the given buffer to the input stream.
|
|
marks the end of stream, i.e. the data provided with the last call to setBuffer is the last data available in the stream. |
|
skips over the given number of bytes (or less)
Implements DcmProducer. |
|
returns the status of the producer as an OFCondition object. Unless the status is good, the producer will not permit any operation.
Implements DcmProducer. |