equal
deleted
inserted
replaced
119 ///\param obl Indicate if the option is mandatory. |
119 ///\param obl Indicate if the option is mandatory. |
120 ArgParser &intOption(const std::string &name, |
120 ArgParser &intOption(const std::string &name, |
121 const std::string &help, |
121 const std::string &help, |
122 int value=0, bool obl=false); |
122 int value=0, bool obl=false); |
123 |
123 |
124 ///Add a new floating type option |
124 ///Add a new floating point type option |
125 |
125 |
126 ///\param name The name of the option. The leading '-' must be omitted. |
126 ///\param name The name of the option. The leading '-' must be omitted. |
127 ///\param help A help string. |
127 ///\param help A help string. |
128 ///\retval value The value of the argument will be written to this variable. |
128 ///\retval value The value of the argument will be written to this variable. |
129 ///\param obl Indicate if the option is mandatory. |
129 ///\param obl Indicate if the option is mandatory. |
294 |
294 |
295 |
295 |
296 ///Magic type for operator[] |
296 ///Magic type for operator[] |
297 |
297 |
298 ///This is the type of the return value of ArgParser::operator[](). |
298 ///This is the type of the return value of ArgParser::operator[](). |
299 ///It automatically converts to int, double, bool or std::string, if it |
299 ///It automatically converts to int, double, bool or std::string if |
300 ///match the type of the option, otherwise it throws an exception. |
300 ///the type of the option matches, otherwise it throws an exception. |
301 ///(i.e. it performs runtime type checking). |
301 ///(i.e. it performs runtime type checking). |
302 class RefType |
302 class RefType |
303 { |
303 { |
304 ArgParser &_parser; |
304 ArgParser &_parser; |
305 std::string _name; |
305 std::string _name; |