00001 /* 00002 * 00003 * Copyright (C) 2001-2010, OFFIS e.V. 00004 * All rights reserved. See COPYRIGHT file for details. 00005 * 00006 * This software and supporting documentation were developed by 00007 * 00008 * OFFIS e.V. 00009 * R&D Division Health 00010 * Escherweg 2 00011 * D-26121 Oldenburg, Germany 00012 * 00013 * 00014 * Module: dcmimgle 00015 * 00016 * Author: Joerg Riesmeier 00017 * 00018 * Purpose: Provides abstract interface to plugable image output formats 00019 * 00020 * Last Update: $Author: joergr $ 00021 * Update Date: $Date: 2010-10-14 13:16:27 $ 00022 * CVS/RCS Revision: $Revision: 1.5 $ 00023 * Status: $State: Exp $ 00024 * 00025 * CVS/RCS Log at end of file 00026 * 00027 */ 00028 00029 00030 #ifndef DIPLUGIN_H 00031 #define DIPLUGIN_H 00032 00033 #include "dcmtk/config/osconfig.h" 00034 00035 #define INCLUDE_CSTDIO 00036 #include "dcmtk/ofstd/ofstdinc.h" 00037 00038 00039 /*------------------------* 00040 * forward declarations * 00041 *------------------------*/ 00042 00043 class DiImage; 00044 00045 00046 /*---------------------* 00047 * class declaration * 00048 *---------------------*/ 00049 00055 class DiPluginFormat 00056 { 00057 00058 public: 00059 00062 virtual ~DiPluginFormat() {} 00063 00072 virtual int write(DiImage *image, 00073 FILE *stream, 00074 const unsigned long frame = 0) const = 0; 00075 00076 protected: 00077 00080 DiPluginFormat() {} 00081 }; 00082 00083 00084 #endif 00085 00086 00087 /* 00088 * 00089 * CVS/RCS Log: 00090 * $Log: diplugin.h,v $ 00091 * Revision 1.5 2010-10-14 13:16:27 joergr 00092 * Updated copyright header. Added reference to COPYRIGHT file. 00093 * 00094 * Revision 1.4 2005/12/08 16:48:05 meichel 00095 * Changed include path schema for all DCMTK header files 00096 * 00097 * Revision 1.3 2003/12/08 19:29:29 joergr 00098 * Removed leading underscore characters from preprocessor symbols (reserved 00099 * symbols). Updated copyright header. 00100 * 00101 * Revision 1.2 2002/11/27 14:08:07 meichel 00102 * Adapted module dcmimgle to use of new header file ofstdinc.h 00103 * 00104 * Revision 1.1 2001/11/27 18:25:04 joergr 00105 * Added support for plugable output formats in class DicomImage. First 00106 * implementation is JPEG. 00107 * 00108 * 00109 */