|
DCMTK Version 3.6.9
OFFIS DICOM Toolkit
|
consumer class that writes to standard output. More...
Inheritance diagram for DcmStdoutConsumer:Public Member Functions | |
| DcmStdoutConsumer (const OFFilename &filename) | |
| constructor | |
| DcmStdoutConsumer (FILE *file) | |
| constructor | |
| virtual | ~DcmStdoutConsumer () |
| 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 offile_off_t | avail () const |
| returns the minimum number of bytes that can be written with the next call to write(). | |
| virtual offile_off_t | write (const void *buf, offile_off_t 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. | |
Public Member Functions inherited from DcmConsumer | |
| virtual | ~DcmConsumer () |
| destructor | |
Private Member Functions | |
| DcmStdoutConsumer (const DcmStdoutConsumer &) | |
| private unimplemented copy constructor | |
| DcmStdoutConsumer & | operator= (const DcmStdoutConsumer &) |
| private unimplemented copy assignment operator | |
Private Attributes | |
| OFFile | file_ |
| the file we're actually writing to | |
| OFCondition | status_ |
| status | |
consumer class that writes to standard output.
| DcmStdoutConsumer::DcmStdoutConsumer | ( | const OFFilename & | filename | ) |
constructor
| filename | name of file to be created (may contain wide chars if support enabled) |
Referenced by DcmStdoutConsumer(), and operator=().
| DcmStdoutConsumer::DcmStdoutConsumer | ( | FILE * | file | ) |
constructor
| file | structure, file must already be open for writing |
|
virtual |
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.
|
virtual |
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.
|
virtual |
returns the status of the consumer.
Unless the status is good, the consumer will not permit any operation.
Implements DcmConsumer.
|
virtual |
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.
|
virtual |
returns the status of the consumer as an OFCondition object.
Unless the status is good, the consumer will not permit any operation.
Implements DcmConsumer.
|
virtual |
processes as many bytes as possible from the given input block.
| buf | pointer to memory block, must not be NULL |
| buflen | length of memory block |
Implements DcmConsumer.