Browse CVS Repository
Contents of /autocoast/src/lib/opt.hpp
Parent Directory
| Revision Log
| Revision Graph
Revision 1.5 -
( show annotations)
( download)
( as text)
Fri Nov 26 09:22:38 2004 UTC
(19 years, 4 months ago)
by tmurakam
Branch: MAIN
CVS Tags: v0_3, v0_2, HEAD
Changes since 1.4: +1 -0 lines
File MIME type: text/x-c++hdr
support split bgl
| 1 |
class Options |
| 2 |
{ |
| 3 |
private: |
| 4 |
int argc; |
| 5 |
char **argv; |
| 6 |
|
| 7 |
const char *arg_help_string; |
| 8 |
|
| 9 |
protected: |
| 10 |
void optusage(const char *shortopt, const char *longopt, const char *desc); |
| 11 |
int check(const char *shortopt, const char *longopt); |
| 12 |
char *shift(void); |
| 13 |
virtual void checkOptions(void); |
| 14 |
virtual void usage(void); |
| 15 |
|
| 16 |
public: |
| 17 |
~Options(); |
| 18 |
|
| 19 |
inline void set_arg_help(const char *s) { arg_help_string = s; } |
| 20 |
|
| 21 |
void parse(int *pargc, char ***pargv); |
| 22 |
}; |
| 23 |
|
| 24 |
class AcOptions : public Options |
| 25 |
{ |
| 26 |
public: |
| 27 |
bool useDegree; |
| 28 |
int landWidth; |
| 29 |
const char *textureName; |
| 30 |
int textureWidth; |
| 31 |
bool splitBgl; |
| 32 |
|
| 33 |
public: |
| 34 |
AcOptions(); |
| 35 |
virtual void checkOptions(void); |
| 36 |
void usage(void); |
| 37 |
}; |
| 38 |
|
| 39 |
extern AcOptions AcOpts; |
|