00001 /* 00002 * 00003 * Copyright (C) 1994-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: dcmdata 00019 * 00020 * Author: Marco Eichelberg 00021 * 00022 * Purpose: singleton class that registers RLE encoder. 00023 * 00024 * Last Update: $Author: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:28:39 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcmtk/dcmdata/dcrleerg.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.4 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef DCRLEERG_H 00035 #define DCRLEERG_H 00036 00037 #include "dcmtk/config/osconfig.h" 00038 #include "dcmtk/ofstd/oftypes.h" /* for OFBool */ 00039 #include "dcmtk/dcmdata/dctypes.h" /* for Uint32 */ 00040 00041 class DcmRLECodecParameter; 00042 class DcmRLECodecEncoder; 00043 00046 class DcmRLEEncoderRegistration 00047 { 00048 public: 00049 00061 static void registerCodecs( 00062 OFBool pCreateSOPInstanceUID = OFFalse, 00063 OFBool pVerbose = OFFalse, 00064 Uint32 pFragmentSize = 0, 00065 OFBool pCreateOffsetTable = OFTrue, 00066 OFBool pConvertToSC = OFFalse); 00067 00073 static void cleanup(); 00074 00075 private: 00076 00078 DcmRLEEncoderRegistration(const DcmRLEEncoderRegistration&); 00079 00081 DcmRLEEncoderRegistration& operator=(const DcmRLEEncoderRegistration&); 00082 00084 static OFBool registered; 00085 00087 static DcmRLECodecParameter *cp; 00088 00090 static DcmRLECodecEncoder *codec; 00091 00092 // dummy friend declaration to prevent gcc from complaining 00093 // that this class only defines private constructors and has no friends. 00094 friend class DcmRLEEncoderRegistrationDummyFriend; 00095 00096 }; 00097 00098 #endif 00099 00100 /* 00101 * CVS/RCS Log 00102 * $Log: dcrleerg.h,v $ 00103 * Revision 1.4 2005/12/08 16:28:39 meichel 00104 * Changed include path schema for all DCMTK header files 00105 * 00106 * Revision 1.3 2004/01/20 12:57:21 meichel 00107 * Added dummy friend class to avoid warning on certain gcc releases 00108 * 00109 * Revision 1.2 2003/03/21 13:06:46 meichel 00110 * Minor code purifications for warnings reported by MSVC in Level 4 00111 * 00112 * Revision 1.1 2002/06/06 14:52:37 meichel 00113 * Initial release of the new RLE codec classes 00114 * and the dcmcrle/dcmdrle tools in module dcmdata 00115 * 00116 * 00117 */