00001 /* 00002 * 00003 * Copyright (C) 2001-2005, 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: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:48:05 $ 00026 * CVS/RCS Revision: $Revision: 1.4 $ 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 "dcmtk/config/osconfig.h" 00038 00039 #define INCLUDE_CSTDIO 00040 #include "dcmtk/ofstd/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.4 2005/12/08 16:48:05 meichel 00096 * Changed include path schema for all DCMTK header files 00097 * 00098 * Revision 1.3 2003/12/08 19:29:29 joergr 00099 * Removed leading underscore characters from preprocessor symbols (reserved 00100 * symbols). Updated copyright header. 00101 * 00102 * Revision 1.2 2002/11/27 14:08:07 meichel 00103 * Adapted module dcmimgle to use of new header file ofstdinc.h 00104 * 00105 * Revision 1.1 2001/11/27 18:25:04 joergr 00106 * Added support for plugable output formats in class DicomImage. First 00107 * implementation is JPEG. 00108 * 00109 * 00110 */