equal
deleted
inserted
replaced
45 |
45 |
46 static void _showHelp(void *p); |
46 static void _showHelp(void *p); |
47 protected: |
47 protected: |
48 |
48 |
49 int _argc; |
49 int _argc; |
50 char **_argv; |
50 const char **_argv; |
51 |
51 |
52 enum OptType { UNKNOWN=0, BOOL=1, STRING=2, DOUBLE=3, INTEGER=4, FUNC=5 }; |
52 enum OptType { UNKNOWN=0, BOOL=1, STRING=2, DOUBLE=3, INTEGER=4, FUNC=5 }; |
53 |
53 |
54 class ParData { |
54 class ParData { |
55 public: |
55 public: |
105 std::string _command_name; |
105 std::string _command_name; |
106 |
106 |
107 public: |
107 public: |
108 |
108 |
109 ///\e |
109 ///\e |
110 ArgParser(int argc, char **argv); |
110 ArgParser(int argc, const char **argv); |
111 |
111 |
112 ~ArgParser(); |
112 ~ArgParser(); |
113 |
113 |
114 ///Add a new integer type option |
114 ///Add a new integer type option |
115 |
115 |