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

appopts.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: appopts.h,v 1.1 2000/05/03 08:48:41 ali Exp ali $
00022  *
00023  * $Log: appopts.h,v $
00024  * Revision 1.1  2000/05/03 08:48:41  ali
00025  * Initial revision
00026  *
00027  *
00028  */
00029 #ifndef __APPOPTS_H
00030 #define __APPOPTS_H
00031 
00032 #include <print.h>
00033 
00034 
00036 
00037 class AppOptions
00038 {
00039 public:
00043   AppOptions();
00044 
00046   ~AppOptions();
00047 
00052   bool parseArgs(int argc, char **argv);
00053 
00055   bool errhelp;
00056 
00058   char *inputfname;
00059 
00061   char *woutname;
00062 
00064   char *ncpoutname;
00065 
00067   char *ioutname;
00068 
00070   char *baseoutname;
00071 
00073   bool create_instance;
00074 
00077   bool setOutName(const char *basename);
00078 
00079 private:
00081   bool trySetOutName(char *);
00082 
00084   void usage(void);
00085 };
00086 
00087 
00089 extern AppOptions appopt;
00090 
00091 
00092 #endif

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