Blame view

options.h 571 Bytes
2b8a1d84   dmayerich   added an error if...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  #ifndef	RTS_OPTIONS_H

  #define RTS_OPTIONS_H

  

  #include <string>

  

  enum opt_type {optInt, optDouble, optStr, optFlag};

  

  struct opt

  {

  	//long name for the option

  	std::string _lname;

  

  	//short name for the option

  	char _sname;

  

  	//help string

  	std::string _help;

  

  	//store the type

  	opt_type _type;

  

  	//data is stored in a vector of void pointers

  	std::vector<void*> _data;

  };

  

  class rtOptions

  {

  	std::vector<opt> optArray;

  

  	int addOption(char sname, std::string lname, std::string help, opt_type type = optStr)

  	{

  

  

  	}

  

  };

  

  

  

  

  #endif