33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/dcmdata/dcostrma.h" 36 #define INCLUDE_CSTDIO 37 #include "dcmtk/ofstd/ofstdinc.h" 62 virtual OFBool
good()
const;
84 virtual offile_off_t
avail()
const;
91 virtual offile_off_t
write(
const void *buf, offile_off_t buflen);
this class provides a simple C++ encapsulation layer for stdio FILE pointers.
DcmFileConsumer(const char *filename)
constructor
OFFile file_
the file we're actually writing to
virtual OFBool good() const
returns the status of the consumer.
DcmFileConsumer & operator=(const DcmFileConsumer &)
private unimplemented copy assignment operator
virtual ~DcmFileConsumer()
destructor
base class for output streams.
OFCondition status_
status
virtual OFBool isFlushed() const
returns true if the consumer is flushed, i.e.
consumer class that stores data in a plain file.
virtual offile_off_t write(const void *buf, offile_off_t buflen)
processes as many bytes as possible from the given input block.
virtual OFCondition status() const
returns the status of the consumer as an OFCondition object.
DcmFileConsumer consumer_
the final consumer of the filter chain
output stream that writes into a plain file
virtual offile_off_t avail() const
returns the minimum number of bytes that can be written with the next call to write().
virtual void flush()
instructs the consumer to flush its internal content until either the consumer becomes "flushed" or I...
pure virtual abstract base class for consumers, i.e.
General purpose class for condition codes.