Changeset 9856 in orxonox.OLD for branches/new_class_id/src/lib/parser/preferences
- Timestamp:
- Sep 28, 2006, 6:17:58 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/parser/preferences
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/parser/preferences/Makefile.am
r7256 r9856 6 6 libPrefsParser_a_SOURCES = \ 7 7 cmd_line_prefs_reader.cc \ 8 ini_file_prefs_reader.cc 8 ini_file_prefs_reader.cc \ 9 preferences.cc 9 10 10 11 11 12 noinst_HEADERS = \ 12 13 cmd_line_prefs_reader.h \ 13 ini_file_prefs_reader.h 14 ini_file_prefs_reader.h \ 15 preferences.h -
branches/new_class_id/src/lib/parser/preferences/cmd_line_prefs_reader.h
r7256 r9856 7 7 #define _CMD_LINE_PREFS_READER_H 8 8 9 #include "stdincl.h"10 9 #include "debug.h" 11 10 … … 45 44 }; 46 45 47 #define REGISTER_ARG_FLAG(shortOption,longOption,section,key,description,value) bool _ARGVAR_##shortOption##_##longOption = CmdLinePrefsReader::registerArgument(#shortOption[0],#longOption,section,key,description,"",value) 46 #define REGISTER_ARG_FLAG(shortOption,longOption,section,key,description,value) bool _ARGVAR_##shortOption##_##longOption = CmdLinePrefsReader::registerArgument(#shortOption[0],#longOption,section,key,description,"",value) 48 47 49 #define REGISTER_ARG_ARG(shortOption,longOption,section,key,description,argname) bool _ARGVAR_##shortOption##_##longOption = CmdLinePrefsReader::registerArgument(#shortOption[0],#longOption,section,key,description,argname) 48 #define REGISTER_ARG_ARG(shortOption,longOption,section,key,description,argname) bool _ARGVAR_##shortOption##_##longOption = CmdLinePrefsReader::registerArgument(#shortOption[0],#longOption,section,key,description,argname) 50 49 51 50 //! A class for reading commandline arguments into Preferences 52 class CmdLinePrefsReader 51 class CmdLinePrefsReader 53 52 { 54 53 … … 58 57 59 58 bool parse(int argc, char** argv); 60 59 61 60 static bool registerArgument( const char shortOption, const std::string & longOption, const std::string & section, const std::string & key, const std::string & help, const std::string & argName = "", const std::string & value = "%arg%" ); 62 61 63 62 static bool asdf; 64 63 65 64 private: 66 65 static bool callBack( ArgTableEntry entry, void* data, const std::string & arg, const std::vector<MultiType> & argArgs ); 67 66 68 67 static RegistredArgs regArgs; 69 68
Note: See TracChangeset
for help on using the changeset viewer.