OFFIS DCMTK Version 3.6.0
Public Member Functions | Protected Member Functions
DiPluginFormat Class Reference

abstract interface to plugable image output formats. More...

Inheritance diagram for DiPluginFormat:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~DiPluginFormat ()
 destructor (virtual)
virtual int write (DiImage *image, FILE *stream, const unsigned long frame=0) const =0
 write given image to a file stream (abstract)

Protected Member Functions

 DiPluginFormat ()
 constructor (protected)

Detailed Description

abstract interface to plugable image output formats.

This is an abstract base class used as an interface to support multiple plugable image output formats for the dcmimle/dcmimage library. An example implementation can be found in dcmjpeg/libsrc/dipijpeg.cc (JPEG plugin).

Definition at line 55 of file diplugin.h.


Member Function Documentation

virtual int DiPluginFormat::write ( DiImage image,
FILE *  stream,
const unsigned long  frame = 0 
) const [pure virtual]

write given image to a file stream (abstract)

Parameters:
imagepointer to DICOM image object to be written
streamstream to which the image is written (open in binary mode!)
frameindex of frame used for output (default: first frame = 0)
Returns:
true if successful, false otherwise

Implemented in DiPNGPlugin, DiTIFFPlugin, and DiJPEGPlugin.


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


Generated on Sat Jun 11 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.7.4