Inheritance diagram for DcmBufferConsumer:
Public Member Functions | |
DcmBufferConsumer (void *buf, Uint32 bufLen) | |
constructor | |
virtual | ~DcmBufferConsumer () |
destructor | |
virtual OFBool | good () const |
returns the status of the consumer. | |
virtual OFCondition | status () const |
returns the status of the consumer as an OFCondition object. | |
virtual OFBool | isFlushed () const |
returns true if the consumer is flushed, i.e. | |
virtual Uint32 | avail () const |
returns the minimum number of bytes that can be written with the next call to write(). | |
virtual Uint32 | write (const void *buf, Uint32 buflen) |
processes as many bytes as possible from the given input block. | |
virtual void | flush () |
instructs the consumer to flush its internal content until either the consumer becomes "flushed" or I/O suspension occurs. | |
virtual void | flushBuffer (void *&buffer, Uint32 &length) |
retrieves and flushes the underlying buffer. | |
Private Member Functions | |
DcmBufferConsumer (const DcmBufferConsumer &) | |
private unimplemented copy constructor | |
DcmBufferConsumer & | operator= (const DcmBufferConsumer &) |
private unimplemented copy assignment operator | |
Private Attributes | |
unsigned char * | buffer_ |
the buffer we're actually writing to | |
Uint32 | bufSize_ |
size of the buffer, in bytes | |
Uint32 | filled_ |
number of bytes filled in buffer | |
OFCondition | status_ |
status |
Used for DICOM network communication.
Definition at line 44 of file dcostrmb.h.
|
constructor
|
|
returns the minimum number of bytes that can be written with the next call to write(). The DcmObject write 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 written "en bloc", i.e. all or nothing.
Implements DcmConsumer. |
|
instructs the consumer to flush its internal content until either the consumer becomes "flushed" or I/O suspension occurs. After a call to flush(), a call to write() will produce undefined behaviour. Implements DcmConsumer. |
|
retrieves and flushes the underlying buffer. After return of this method, the buffer is considered to have been flushed (copied, stored) by the caller and is reused by the next write operation.
|
|
returns the status of the consumer. Unless the status is good, the consumer will not permit any operation.
Implements DcmConsumer. |
|
returns true if the consumer is flushed, i.e. has no more data pending in it's internal state that needs to be flushed before the stream is closed.
Implements DcmConsumer. |
|
returns the status of the consumer as an OFCondition object. Unless the status is good, the consumer will not permit any operation.
Implements DcmConsumer. |
|
processes as many bytes as possible from the given input block.
Implements DcmConsumer. |