Changeset 8316 in orxonox.OLD for trunk/src/lib/parser/cmdline_parser/cmdline_parser.h
- Timestamp:
- Jun 11, 2006, 1:57:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/parser/cmdline_parser/cmdline_parser.h
r7256 r8316 17 17 struct ArgTableEntry 18 18 { 19 intid;20 std::string longOption;21 char shortOption;22 intnumArgs;23 std::string argNames;24 std::string help;19 unsigned int id; 20 std::string longOption; 21 char shortOption; 22 unsigned int numArgs; 23 std::string argNames; 24 std::string help; 25 25 }; 26 26 … … 36 36 CmdLineParser(); 37 37 virtual ~CmdLineParser(); 38 38 39 39 bool add( int id, const std::string& longOption, char shortOption, int numArgs, const std::string & argNames, const std::string& help, bool back=false ); 40 40 41 41 bool parse( ArgParserCallback cb, void* data, int argc, char** argv ); 42 42 43 43 void showHelp(); 44 44 45 45 private: 46 46 ArgTable argTable; 47 47 std::string exeName; 48 48 49 49 inline bool matches( ArgTableEntry entry, std::string arg, bool & finish ); 50 50
Note: See TracChangeset
for help on using the changeset viewer.