using namespace std;
/*!
- *\brief Hachti's wonderful commandline parser.
+ *\brief Hachti's even more wonderful configuration manager.
*
* This class is designed to do all the work with the parameters passed to
* the main() routine of a program.\n
+ * Additionally, it is able to interpret configuration files.
* Usage:\n
* - Create an instance.
* - Add Parameters/switches with add_param().
public:
argument_reader(string name);
- void add_param (string shortname,
+ void add_param (string shortname,
string longname,
string description,
int *status,
+ bool allow_commandline=true,
+ bool allow_config_file=true,
string *target=NULL,
string placeholder=string("<string>")
);
vector<string> read_args(int argc, char ** args);
+ vector<string> read_file(string filename);
- void get_help(vector<string> & target);
+ void get_help (vector<string> & target);
vector<string> get_help();
void add_argument(string placeholder, string description, int * status, string * target);