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

FBwConfig.h

00001 /*
00002  * config.h
00003  */
00004 #ifndef CONFIG_HH
00005 #define CONFIG_HH   0
00006 
00007 /*#define DEBUG_MESSAGES_ON 1*/
00008 
00009 #include <ibase.h>
00010 
00011 #ifdef STRING_IS_QSTRING
00012 #define string QString
00013 #else
00014 #include <string>
00015 using std::string;
00016 #endif
00017 
00018 #if defined (__GNUC__) && __GNUC__  >= 3 
00019 #include <sstream>
00020 #else
00021 #include <strstream>
00022 #define stringstream strstream
00023 #endif
00024 
00025 #ifdef DEBUG_MESSAGES_ON
00026 #include <iostream>
00027 #include <iomanip>
00028 
00029 inline void DEBUG_OUT(const char *msg1, int val)
00030 {
00031     std::cout << msg1 << ":" << val << std::endl;
00032 }
00033 inline void DEBUG_OUT(const char *msg1, const char *msg2=0, const char *msg3=0)
00034 {
00035     std::cout << msg1;
00036     if(msg2 )
00037         std::cout << msg2;
00038     if( msg3 )
00039         std::cout << msg3;
00040     std::cout << std::endl;
00041 }
00042 #else
00043 inline void DEBUG_OUT(const char *msg1, int val)
00044 {
00045     ;
00046 }
00047 inline void DEBUG_OUT(char *msg1, char *msg2=0, char *msg3=0)
00048 {
00049     ;
00050 }
00051 #endif
00052 
00053 
00054 #endif
00055 // end of config.h

Generated on Fri Jan 31 08:30:01 2003 for fbwrap by doxygen1.2.17