gramods
Loading...
Searching...
No Matches
modules
gmCore
include
gmCore
CommandLineParser.hh
1
2
#ifndef GRAMODS_CORE_COMMANDLINEPARSER
3
#define GRAMODS_CORE_COMMANDLINEPARSER
4
5
#include <gmCore/config.hh>
6
7
#include <string>
8
9
BEGIN_NAMESPACE_GMCORE;
10
17
class
CommandLineParser
{
18
19
public
:
20
25
CommandLineParser
(
int
&argc,
char
**&argv);
26
31
std::string getNextArgument();
32
36
bool
hasMoreArguments();
37
42
bool
consumeLast(
int
count);
43
44
private
:
45
46
int
&argc;
47
char
**&argv;
48
int
current_position;
49
int
count;
50
51
};
52
53
END_NAMESPACE_GMCORE;
54
55
#endif
gramods::gmCore::CommandLineParser
Simple parser for consuming command line arguments.
Definition
CommandLineParser.hh:17
Generated by
1.9.8