1998-04-24 00:49:17 +00:00
|
|
|
// options.hxx -- class to handle command line options
|
|
|
|
//
|
|
|
|
// Written by Curtis Olson, started April 1998.
|
|
|
|
//
|
2004-11-19 22:10:41 +00:00
|
|
|
// Copyright (C) 1998 Curtis L. Olson - http://www.flightgear.org/~curt
|
1998-04-24 00:49:17 +00:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful, but
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
//
|
|
|
|
// $Id$
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _OPTIONS_HXX
|
|
|
|
#define _OPTIONS_HXX
|
|
|
|
|
|
|
|
|
1998-09-08 21:40:08 +00:00
|
|
|
#ifndef __cplusplus
|
1998-04-24 00:49:17 +00:00
|
|
|
# error This library requires C++
|
1998-09-17 18:35:30 +00:00
|
|
|
#endif
|
|
|
|
|
2001-01-13 22:06:39 +00:00
|
|
|
extern void fgSetDefaults ();
|
2002-01-04 20:58:48 +00:00
|
|
|
extern void fgParseArgs (int argc, char ** argv);
|
2001-01-13 22:06:39 +00:00
|
|
|
extern void fgParseOptions (const string &file_path);
|
2002-08-25 22:38:20 +00:00
|
|
|
extern void fgUsage (bool verbose = false);
|
2003-09-19 20:06:27 +00:00
|
|
|
extern void fgShowAircraft(const SGPath &path, bool recursive);
|
1998-04-24 00:49:17 +00:00
|
|
|
|
2001-02-02 22:39:13 +00:00
|
|
|
#endif /* _OPTIONS_HXX */
|