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

CfgFile.h

Go to the documentation of this file.
00001 // ///////////////////  ***********************  \\\\\\\\\\\\\\\\\\\\ \\
00002 //
00003 //  This file is part of the Sector 5, 3D graphic game.
00004 //  Copyright (C) 2000-2002 by PC John. All rights reserved.
00005 //
00006 //  This game is free software; you can redistribute it and/or
00007 //  modify it under the terms of the GNU Lesser General Public License
00008 //  version 2.1 as published by the Free Software Foundation. See the
00009 //  file LICENSE.LGPL at the root directory of the distribution for
00010 //  more details.
00011 //
00012 //  If you want to use Sector 5 code for applications not compatible 
00013 //  with the LGPL license, please contact PC John at pcjohn@email.cz.
00014 //
00015 // \\\\\\\\\\\\\\\\\\\  ***********************  //////////////////// //
00016 
00017 
00018 #ifndef CFG_FILE_H_INCLUDED_
00019 #define CFG_FILE_H_INCLUDED_
00020 
00021 
00022 class CfgFile
00023 {
00024 public:
00025 
00026   static const char* getString(const char *varName, const char *varDefault = "");
00027   static int         getInt   (const char *varName, int varDefault = 0);
00028   static float       getFloat (const char *varName, float varDefault = 0.f);
00029 
00030   static void init();
00031   static void initLoadDefaults();
00032   static void done();
00033 
00034 private:
00035 
00036   static bool read(const char *varName, char *s);
00037 
00038 };
00039 
00040 
00041 #endif CFG_FILE_H_INCLUDED_

Generated on Sun Feb 17 21:42:33 2002 for Sector 5 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001