Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

fun.h

00001 #ifndef _FUN_FUN_H
00002 #define _FUN_FUN_H
00003 #include <qmessagebox.h>
00004 #include "config.h"
00005 #include <iostream>
00006 #include <fstream>
00007 
00008 using std::cout;
00009 using std::cerr;
00010 using std::hex;
00011 using std::dec;
00012 using std::endl;
00013 
00014 //  See test/why.cpp.
00015 #define REIMPLEMENT_INHERITED_TEMPLATES 0
00016 
00017 #define NOT_IMPLEMENTED(f) QMessageBox::critical( 0, "Not Yet Implemented. Patience, my son.", QString().sprintf("%s\nPlease fix this in [%s]:[Line %d]",f,__FILE__, __LINE__ ) );
00018 /**
00019 *  The NOT_DONE macro prints out the string "NOT_DONE", the file, the line
00020 *  number, and a message, if NDEBUG is not #defined at compile time.  It
00021 *  uses iostream, so its use looks like
00022 *
00023 *      NOT_DONE("not preventing hard disk vaporization in " << dec << s << " seconds.");
00024 */
00025 #ifndef NDEBUG
00026 #define NOT_DONE(a) std::cerr << "NOT_DONE " << __FILE__ << " " << std::dec << __LINE__ << ": " << a << std::endl
00027 #define CERR_CONDITION 1
00028 #else
00029 #define NOT_DONE(a) 0
00030 #define CERR_CONDITION 0
00031 #endif
00032 
00033 #ifndef CERR
00034 #define CERR if( CERR_CONDITION ) std::cerr << __FILE__ << ": " << std::dec << __LINE__ << ": "
00035 #endif
00036 
00037 #endif // _FUN_FUN_H

Generated on Mon Aug 11 14:06:55 2003 for libfunutil by doxygen1.2.18