00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __GLOBAL_INCLUDED
00018 #define __GLOBAL_INCLUDED
00019
00020 #include <string>
00021
00022 #include "common/defs.h"
00023
00024 using namespace std;
00025
00026
00027
00028
00029
00030
00031
00041 void Fatal( const string& sClassName, const string& sMethodName,
00042 const string& sMessage, int iExitCode=-1 );
00049 template <class T>
00050 T Max (const T x, const T y)
00051 {
00052 if ( x < y ) return y;
00053 return x;
00054 }
00061 template <class T>
00062 T Min (const T x, const T y)
00063 {
00064 if ( x < y ) return x;
00065 return y;
00066 }
00080 int Round( double dValue );
00081
00082
00083
00084
00085
00086 #endif // __GLOBAL_INCLUDED
00087
00088
00089
00090
00091