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

optkeep.h

Go to the documentation of this file.
00001 /*
00002  *  Part of rvglue source code,
00003  *  Copyright (C) 2000 Alexander Kroeller (alilein@gmx.de)
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  */
00019 
00020 /*
00021  * $Id: optkeep.h,v 1.1 2000/05/03 08:48:16 ali Exp ali $
00022  *
00023  * $Log: optkeep.h,v $
00024  * Revision 1.1  2000/05/03 08:48:16  ali
00025  * Initial revision
00026  *
00027  *
00028  */
00029 #ifndef __OPTKEEP_H
00030 #define __OPTKEEP_H
00031 
00032 #include "modlist.h"
00033 #include "parser.h"
00034 
00035 
00037 #define MAX_FOPTS  200
00038 
00040 #define DEFAULT_GROUP "default"
00041 
00042 
00044 class OptionSetKeeper
00045 {
00046 public:
00051   OptionSetKeeper(OptionSetKeeper *_parent=NULL);
00052   virtual ~OptionSetKeeper();
00053 
00064   virtual bool readSpecial(Parser &p) hook;
00065 
00073   virtual bool postParsing(void) hook;
00074 
00075   int read(Parser &p);
00076 
00077 
00086   ModList *lookup(const char *iname, bool useDefaults=true);
00087 
00088   void dump(const char *pref);
00089 
00090 private:
00091   OptionSetKeeper *parent;
00092   int readpart(Parser &p);
00093 
00094   char *inames[MAX_FOPTS];
00095   ModList *optsets[MAX_FOPTS];
00096   int cursize;
00097 };
00098 
00099 
00100 
00102 extern OptionSetKeeper define_group;
00103 
00104 
00105 #endif

Generated at Mon Jul 2 16:54:58 2001 for rvtmod/rvglue by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000