Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

diplugin.h

00001 /*
00002  *
00003  *  Copyright (C) 2001-2003, OFFIS
00004  *
00005  *  This software and supporting documentation were developed by
00006  *
00007  *    Kuratorium OFFIS e.V.
00008  *    Healthcare Information and Communication Systems
00009  *    Escherweg 2
00010  *    D-26121 Oldenburg, Germany
00011  *
00012  *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY
00013  *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR
00014  *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR
00015  *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
00016  *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
00017  *
00018  *  Module:  dcmimgle
00019  *
00020  *  Author:  Joerg Riesmeier
00021  *
00022  *  Purpose: Provides abstract interface to plugable image output formats
00023  *
00024  *  Last Update:      $Author: joergr $
00025  *  Update Date:      $Date: 2003/12/08 19:29:29 $
00026  *  CVS/RCS Revision: $Revision: 1.3 $
00027  *  Status:           $State: Exp $
00028  *
00029  *  CVS/RCS Log at end of file
00030  *
00031  */
00032 
00033 
00034 #ifndef DIPLUGIN_H
00035 #define DIPLUGIN_H
00036 
00037 #include "osconfig.h"
00038 
00039 #define INCLUDE_CSTDIO
00040 #include "ofstdinc.h"
00041 
00042 
00043 /*------------------------*
00044  *  forward declarations  *
00045  *------------------------*/
00046 
00047 class DiImage;
00048 
00049 
00050 /*---------------------*
00051  *  class declaration  *
00052  *---------------------*/
00053 
00059 class DiPluginFormat
00060 {
00061 
00062   public:
00063 
00066     virtual ~DiPluginFormat() {}
00067 
00076     virtual int write(DiImage *image,
00077                       FILE *stream,
00078                       const unsigned long frame = 0) const = 0;
00079 
00080   protected:
00081 
00084     DiPluginFormat() {}
00085 };
00086 
00087 
00088 #endif
00089 
00090 
00091 /*
00092  *
00093  * CVS/RCS Log:
00094  * $Log: diplugin.h,v $
00095  * Revision 1.3  2003/12/08 19:29:29  joergr
00096  * Removed leading underscore characters from preprocessor symbols (reserved
00097  * symbols). Updated copyright header.
00098  *
00099  * Revision 1.2  2002/11/27 14:08:07  meichel
00100  * Adapted module dcmimgle to use of new header file ofstdinc.h
00101  *
00102  * Revision 1.1  2001/11/27 18:25:04  joergr
00103  * Added support for plugable output formats in class DicomImage. First
00104  * implementation is JPEG.
00105  *
00106  *
00107  */


Generated on 8 Dec 2004 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.3.9.1