Debian Codegraph @

HercStudio/Arguments.h

raw symbols SCIP
1 /*
2 * File: Arguments.h
3 *
4 * Author: Jacob Dekel
5 * Created on: Oct 6, 2009
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * Arguments handling class
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27 #ifndef ARGUMENTS_H_
28 #define ARGUMENTS_H_
29
30 class Arguments
31 {
32 public:
33 virtual ~Arguments();
34 static Arguments& getInstance();
35
36 int parse(int argc, char *argv[]);
37 void printUsage();
38
39 bool helpRequested() const;
40 const std::string& configFileName() const;
41 const std::string& resourceFileName() const;
42 private:
43 Arguments();
44
45 static Arguments instance;
46
47 bool mHelp;
48 std::string mConfigFile;
49 std::string mResourceFile;
50 };
51
52 #endif /* ARGUMENTS_H_ */