DCMTK Version 3.7.0 OFFIS DICOM Toolkit

Public Member Functions | Private Member Functions | Private Attributes | List of all members
DcmOutputFileStream Class Reference

output stream that writes into a plain file More...

Inheritance diagram for DcmOutputFileStream:

## Public Member Functions
| DcmOutputFileStream (const OFFilename &filename)
| constructor More...
| DcmOutputFileStream (FILE *file)
| constructor More...
| DcmOutputFileStream (OFFile &file)
| constructor More...
virtual | ~DcmOutputFileStream ()
| destructor
virtual OFCondition | fclose ()
| close file More...
Public Member Functions inherited from DcmOutputStream
virtual | ~DcmOutputStream ()
| destructor
virtual OFBool | good () const
| returns the status of the stream. More...
virtual OFCondition | status () const
| returns the status of the consumer as an OFCondition object. More...
virtual OFBool | isFlushed () const
| returns true if the stream is flushed, i.e. More...
virtual offile_off_t | avail () const
| returns the minimum number of bytes that can be written with the next call to write(). More...
virtual offile_off_t | write (const void *buf, offile_off_t buflen)
| processes as many bytes as possible from the given input block. More...
virtual void | flush ()
| instructs the stream to flush its internal content until either the stream becomes "flushed" or I/O suspension occurs. More...
virtual offile_off_t | tell () const
| returns the total number of bytes written to 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...

## Private Member Functions
| DcmOutputFileStream (const DcmOutputFileStream &)
| private unimplemented copy constructor
DcmOutputFileStream & | operator= (const DcmOutputFileStream &)
| private unimplemented copy assignment operator

## Private Attributes
DcmFileConsumer | consumer_
| the final consumer of the filter chain

## Additional Inherited Members
Protected Member Functions inherited from DcmOutputStream
| DcmOutputStream (DcmConsumer *initial)
| protected constructor, to be called from derived class constructor More...

## Detailed Description

output stream that writes into a plain file

## Constructor & Destructor Documentation

## ◆ DcmOutputFileStream() [1/3]

DcmOutputFileStream::DcmOutputFileStream | ( | const OFFilename & | filename | ) |

constructor

Parameters

  filename | name of file to be created (may contain wide chars if support enabled)

## ◆ DcmOutputFileStream() [2/3]

DcmOutputFileStream::DcmOutputFileStream | ( | FILE * | file | ) |

constructor

Parameters

  file | structure, file must already be open for writing

## ◆ DcmOutputFileStream() [3/3]

DcmOutputFileStream::DcmOutputFileStream | ( | OFFile & | file | ) |

constructor

Parameters

  OFFile | instance, file must already be open for writing, and the OFFile object must remain valid as long as this instance exists.

## Member Function Documentation

## ◆ fclose()

virtual OFCondition DcmOutputFileStream::fclose | ( |  | ) |
| virtual

close file

Returns
  EC_Normal if successful, an error code otherwise

The documentation for this class was generated from the following file:

- dcmdata/include/dcmtk/dcmdata/dcostrmf.h

Generated on Mon Dec 15 2025 for DCMTK Version 3.7.0 by Doxygen 1.9.1