00001 /* 00002 * 00003 * Copyright (C) 2002-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: dcmdata 00015 * 00016 * Author: Marco Eichelberg 00017 * 00018 * Purpose: singleton class that registers RLE decoder. 00019 * 00020 * Last Update: $Author: joergr $ 00021 * Update Date: $Date: 2010-10-14 13:15:42 $ 00022 * CVS/RCS Revision: $Revision: 1.8 $ 00023 * Status: $State: Exp $ 00024 * 00025 * CVS/RCS Log at end of file 00026 * 00027 */ 00028 00029 #ifndef DCRLEDRG_H 00030 #define DCRLEDRG_H 00031 00032 #include "dcmtk/config/osconfig.h" 00033 #include "dcmtk/ofstd/oftypes.h" /* for OFBool */ 00034 00035 class DcmRLECodecParameter; 00036 class DcmRLECodecDecoder; 00037 00040 class DcmRLEDecoderRegistration 00041 { 00042 public: 00052 static void registerCodecs( 00053 OFBool pCreateSOPInstanceUID = OFFalse, 00054 OFBool pReverseDecompressionByteOrder = OFFalse); 00055 00061 static void cleanup(); 00062 00063 private: 00064 00066 DcmRLEDecoderRegistration(const DcmRLEDecoderRegistration&); 00067 00069 DcmRLEDecoderRegistration& operator=(const DcmRLEDecoderRegistration&); 00070 00072 static OFBool registered; 00073 00075 static DcmRLECodecParameter *cp; 00076 00078 static DcmRLECodecDecoder *codec; 00079 00080 // dummy friend declaration to prevent gcc from complaining 00081 // that this class only defines private constructors and has no friends. 00082 friend class DcmRLEDecoderRegistrationDummyFriend; 00083 00084 }; 00085 00086 #endif 00087 00088 /* 00089 * CVS/RCS Log 00090 * $Log: dcrledrg.h,v $ 00091 * Revision 1.8 2010-10-14 13:15:42 joergr 00092 * Updated copyright header. Added reference to COPYRIGHT file. 00093 * 00094 * Revision 1.7 2009-11-04 09:58:07 uli 00095 * Switched to logging mechanism provided by the "new" oflog module 00096 * 00097 * Revision 1.6 2005-12-08 16:28:37 meichel 00098 * Changed include path schema for all DCMTK header files 00099 * 00100 * Revision 1.5 2005/07/26 17:08:33 meichel 00101 * Added option to RLE decoder that allows to correctly decode images with 00102 * incorrect byte order of byte segments (LSB instead of MSB). 00103 * 00104 * Revision 1.4 2004/02/04 16:00:22 joergr 00105 * Added CVS log entry at the end of the file. 00106 * 00107 * 00108 */