]> cygwin.com Git - cygwin-apps/setup.git/blame - GetOption.h
2002-04-23 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / GetOption.h
CommitLineData
1be8f8fd
RC
1/*
2 * Copyright (c) 2002 Robert Collins.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
11 *
12 * Written by Robert Collins <robertc@hotmail.com>
13 *
14 */
15
16#ifndef _GETOPTION_H_
17#define _GETOPTION_H_
18
19#include <getopt.h>
20class Option;
21
22class GetOption
23{
24public:
25 static GetOption & GetInstance ();
26 void Register (Option *);
27 bool Process (int argc, char **argv);
28private:
29 static GetOption Instance;
30 void Init ();
31 int inited; //we can't use a bool in case it is
32 // non zero on startup.
33 Option **options;
34 int optCount;
35};
36
37#endif // _GETOPTION_H_
This page took 0.025571 seconds and 5 git commands to generate.