44 friend void parse_command_line(
int argc,
char** argv,
47 std::vector<Options>& tasks);
49 friend void parse_command_line(
int argc,
char** argv, Options& toplevel);
54 std::string as_string()
const;
58 float as_float()
const;
64 std::vector<std::string> as_strings()
const;
65 std::vector<int> as_ints()
const;
66 std::vector<float> as_floats()
const;
67 std::vector<bool> as_bools()
const;
68 Eigen::VectorXf as_VectorXf()
const;
71 std::vector<std::string> data;
88 std::vector<Options>& tasks);
94 const Option&
operator()(std::string key)
const;
95 const Option&
operator()(std::string key, std::string default_val);
96 bool has(std::string key);
97 std::string get_name(){
return task_name; }
102 std::vector<Option> data;
103 std::string task_name;