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

global.h

00001 // $Id: global_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $
00002 
00003 // Global Header File
00004 
00005 // Copyright (C) 1999 - 2001, Marco Krohn, marco.krohn@gmx.de
00006 //
00007 // This program is free software; you can redistribute it and/or modify
00008 // it under the terms of the GNU General Public License as published by
00009 // the Free Software Foundation; either version 1, or (at your option)
00010 // any later version.
00011 //
00012 // This program is distrqibuted in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
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 //----------------------------------------  Functions  ----------------------------------------
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 

Generated on Thu Jun 20 18:13:15 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001