abacusroot.h

Go to the documentation of this file.
00001 
00037 #ifndef ABA_ABACUSROOT_H
00038 #define ABA_ABACUSROOT_H
00039 
00040 // check if preprocessor definitions are set correctly
00041 /* We have to split some of the checks since otherwise the lines get to
00042  *  long.
00043  */
00044 // is a compiler defined?
00045 #if !(defined ABACUS_COMPILER_GCC34 || defined ABACUS_COMPILER_GCC41 || \
00046       defined ABACUS_COMPILER_GCC33 || defined ABACUS_COMPILER_GCC || \
00047       defined ABACUS_COMPILER_SUN)
00048 #error Preprocessor definition for compiler is missing!
00049 #endif
00050 
00051 
00052 
00053 
00054 
00055 
00056 #ifdef ABACUS_COMPILER_GCC34
00057 #define ABACUS_NEW_TEMPLATE_SYNTAX
00058 #endif
00059 
00060 #ifdef ABACUS_COMPILER_GCC41
00061 #define ABACUS_NEW_TEMPLATE_SYNTAX
00062 #endif
00063 
00064 #ifdef ABACUS_COMPILER_GCC33
00065 #define ABACUS_NEW_TEMPLATE_SYNTAX
00066 #endif
00067 
00068 
00069 #ifdef ABACUS_COMPILER_SUN
00070 #define ABACUS_NO_BOOL
00071 #define ABACUS_NO_FOR_SCOPE
00072 #define ABACUS_OLD_NEW
00073 #endif
00074 
00075 
00076 #ifdef ABACUS_NO_BOOL
00077   enum ABACUS_BOOL {false, true};
00078   typedef enum ABACUS_BOOL bool;
00079 #endif
00080 
00081 class ABA_ABACUSROOT {
00082   public:
00086     virtual ~ABA_ABACUSROOT();
00087 
00088 
00095     enum EXITCODES{Ok, Fatal};
00096 
00116     virtual void exit(enum EXITCODES code) const;
00117 
00124     const char *onOff(bool value);
00125 
00132     double fracPart(double x) const;
00133 };
00139 #endif  //ABA_ABACUSROOT_H
00140 
00141 
00142 
00143 #define ABACUS_VERSION 300
00144 #define ABACUS_VERSION_STRING "3.0.0"
00145 
00146 
00147 

Generated on Tue Aug 14 18:09:53 2007 for ABACUS by  doxygen 1.5.1