Changeset 2103 for code/trunk/src/core/CommandLine.h
- Timestamp:
- Nov 2, 2008, 12:22:42 AM (17 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/core/CommandLine.h
r2087 r2103 38 38 39 39 #define SetCommandLineArgument(name, defaultValue) \ 40 CommandLineArgument& CmdArgumentDummyBoolVar##name \40 orxonox::CommandLineArgument& CmdArgumentDummyBoolVar##name \ 41 41 = orxonox::CommandLine::addArgument(#name, defaultValue) 42 42 #define SetCommandLineSwitch(name) \ 43 CommandLineArgument& CmdArgumentDummyBoolVar##name \43 orxonox::CommandLineArgument& CmdArgumentDummyBoolVar##name \ 44 44 = orxonox::CommandLine::addArgument(#name, false) 45 45 … … 135 135 136 136 //! Parse redirection to internal member method. 137 static void parse (const std::vector<std::string>& arguments) { _getInstance()._parse(arguments); }137 static void parseAll(int argc, char** argv) { _getInstance()._parseAll(argc, argv); } 138 138 139 139 static std::string getUsageInformation(); … … 165 165 static CommandLine& _getInstance(); 166 166 167 void _parseAll(int argc, char** argv); 167 168 void _parse(const std::vector<std::string>& arguments); 168 169 void checkFullArgument(const std::string& name, const std::string& value);
Note: See TracChangeset
for help on using the changeset viewer.