Changes in lemon/arg_parser.h [214:60eecd3fe37a:311:c887e703b566] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/arg_parser.h
r214 r311 17 17 */ 18 18 19 #ifndef LEMON_ARG_PARSER 20 #define LEMON_ARG_PARSER 19 #ifndef LEMON_ARG_PARSER_H 20 #define LEMON_ARG_PARSER_H 21 21 22 22 #include <vector> … … 47 47 48 48 int _argc; 49 const char * *_argv;49 const char * const *_argv; 50 50 51 51 enum OptType { UNKNOWN=0, BOOL=1, STRING=2, DOUBLE=3, INTEGER=4, FUNC=5 }; … … 120 120 121 121 ///Constructor 122 ArgParser(int argc, const char * *argv);122 ArgParser(int argc, const char * const *argv); 123 123 124 124 ~ArgParser(); … … 311 311 ///This is the type of the return value of ArgParser::operator[](). 312 312 ///It automatically converts to \c int, \c double, \c bool or 313 ///\c std::string if the type of the option matches, otherwise it 314 ///throws an exception (i.e. it performs runtime type checking). 313 ///\c std::string if the type of the option matches, which is checked 314 ///with an \ref LEMON_ASSERT "assertion" (i.e. it performs runtime 315 ///type checking). 315 316 class RefType 316 317 { … … 383 384 } 384 385 385 #endif // LEMON_ARG_PARSER 386 #endif // LEMON_ARG_PARSER_H
Note: See TracChangeset
for help on using the changeset viewer.