Changeset 7357 for code/branches/doc/src/libraries/core/Core.cc
- Timestamp:
- Sep 5, 2010, 6:50:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/libraries/core/Core.cc
r7335 r7357 37 37 38 38 #include <cassert> 39 #include <fstream> 39 40 #include <vector> 40 41 … … 77 78 Core* Core::singletonPtr_s = 0; 78 79 79 //! @cmdarg80 80 SetCommandLineArgument(settingsFile, "orxonox.ini").information("THE configuration file"); 81 //! @cmdarg82 81 SetCommandLineSwitch(noIOConsole).information("Use this if you don't want to use the IOConsole (for instance for Lua debugging)"); 83 82 84 83 #ifdef ORXONOX_PLATFORM_WINDOWS 85 //! @cmdarg86 84 SetCommandLineArgument(limitToCPU, 1).information("Limits the program to one CPU/core (1, 2, 3, etc.). Default is the first core (faster than off)"); 87 85 #endif … … 174 172 // Create singletons that always exist (in other libraries) 175 173 this->rootScope_.reset(new Scope<ScopeID::Root>()); 174 175 // Generate documentation instead of normal run? 176 std::string docFilename; 177 CommandLineParser::getValue("generateDoc", &docFilename); 178 if (!docFilename.empty()) 179 { 180 std::ofstream docFile(docFilename.c_str()); 181 if (docFile.is_open()) 182 { 183 CommandLineParser::generateDoc(docFile); 184 docFile.close(); 185 } 186 else 187 COUT(0) << "Error: Could not open file for documentation writing" << endl; 188 } 176 189 } 177 190
Note: See TracChangeset
for help on using the changeset viewer.