blob: 252fc366b01538f82204871216d6599136219efe [file] [log] [blame]
Patrick Williams3667cf32015-10-20 22:39:11 -05001#ifndef __ARGUMENT_H
2#define __ARGUMENT_H
3#include <getopt.h>
4#include <map>
5#include <string>
6
7class ArgumentParser
8{
9 public:
10 ArgumentParser(int argc, char** argv);
11 const std::string& operator[](const std::string& opt);
12
13 static void usage(char** argv);
14
15 static const std::string true_string;
16 static const std::string empty_string;
17
18 private:
19 std::map<const std::string, std::string> arguments;
20
21 static const option options[];
22 static const char* optionstr;
23
24 private:
25 ArgumentParser() {};
26};
27
28#endif