Changeset 9224 for code/branches/testing/src/libraries/core
- Timestamp:
- May 19, 2012, 3:03:02 PM (13 years ago)
- Location:
- code/branches/testing/src/libraries/core
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/src/libraries/core/CommandLineParser.cc
r9222 r9224 69 69 else 70 70 { 71 if (!value_.set Value(value))72 { 73 value_.set Value(defaultValue_);71 if (!value_.set(value)) 72 { 73 value_.set(defaultValue_); 74 74 ThrowException(Argument, "Could not read command line argument '" + getName() + "'."); 75 75 } -
code/branches/testing/src/libraries/core/CommandLineParser.h
r9222 r9224 200 200 inline void CommandLineParser::getValue<std::string>(const std::string& name, std::string* value) 201 201 { 202 *value = getArgument(name)->getValue().get String();202 *value = getArgument(name)->getValue().get<std::string>(); 203 203 } 204 204 … … 217 217 OrxAssert(!_getInstance().existsArgument(name), 218 218 "Cannot add a command line argument with name '" + name + "' twice."); 219 OrxAssert(!MultiType(defaultValue).isType<bool>() || MultiType(defaultValue).get Bool() != true,219 OrxAssert(!MultiType(defaultValue).isType<bool>() || MultiType(defaultValue).get<bool>() != true, 220 220 "Boolean command line arguments with positive default values are not supported." << endl 221 221 << "Please use SetCommandLineSwitch and adjust your argument: " << name); -
code/branches/testing/src/libraries/core/ConfigValueContainer.cc
r9222 r9224 70 70 this->bIsVector_ = false; 71 71 72 this->defvalueString_ = this->value_.get String();72 this->defvalueString_ = this->value_.get<std::string>(); 73 73 this->update(); 74 74 } -
code/branches/testing/src/libraries/core/Core.cc
r8858 r9224 167 167 this->configFileManager_ = new ConfigFileManager(); 168 168 this->configFileManager_->setFilename(ConfigFileType::Settings, 169 CommandLineParser::getValue("settingsFile").get String());169 CommandLineParser::getValue("settingsFile").get<std::string>()); 170 170 171 171 // Required as well for the config values … … 184 184 #if !defined(ORXONOX_PLATFORM_APPLE) && !defined(ORXONOX_USE_WINMAIN) 185 185 // Create persistent IO console 186 if (CommandLineParser::getValue("noIOConsole").get Bool())186 if (CommandLineParser::getValue("noIOConsole").get<bool>()) 187 187 { 188 188 ModifyConfigValue(bStartIOConsole_, tset, false); … … 337 337 { 338 338 orxout(internal_info) << "loading graphics in Core" << endl; 339 339 340 340 // Any exception should trigger this, even in upgradeToGraphics (see its remarks) 341 341 Loki::ScopeGuard unloader = Loki::MakeObjGuard(*this, &Core::unloadGraphics); -
code/branches/testing/src/libraries/core/PathConfig.cc
r8858 r9224 188 188 // Check for data path override by the command line 189 189 if (!CommandLineParser::getArgument("externalDataPath")->hasDefaultValue()) 190 externalDataPath_ = CommandLineParser::getValue("externalDataPath").get String();190 externalDataPath_ = CommandLineParser::getValue("externalDataPath").get<std::string>(); 191 191 else 192 192 externalDataPath_ = specialConfig::externalDataDevDirectory; … … 227 227 if (!CommandLineParser::getArgument("writingPathSuffix")->hasDefaultValue()) 228 228 { 229 const std::string& directory(CommandLineParser::getValue("writingPathSuffix").get String());229 const std::string& directory(CommandLineParser::getValue("writingPathSuffix").get<std::string>()); 230 230 configPath_ = configPath_ / directory; 231 231 logPath_ = logPath_ / directory; -
code/branches/testing/src/libraries/core/command/CommandEvaluation.cc
r9222 r9224 600 600 // print the default value if available 601 601 if (command->getExecutor()->defaultValueSet(i)) 602 output += '=' + command->getExecutor()->getDefaultValue(i).get String() + ']';602 output += '=' + command->getExecutor()->getDefaultValue(i).get<std::string>() + ']'; 603 603 else 604 604 output += '}'; -
code/branches/testing/src/libraries/core/command/CommandExecutor.cc
r9222 r9224 133 133 /* static */ std::string CommandExecutor::query(const std::string& command, int* error, bool useTcl) 134 134 { 135 return CommandExecutor::queryMT(command, error, useTcl).get String();135 return CommandExecutor::queryMT(command, error, useTcl).get<std::string>(); 136 136 } 137 137 -
code/branches/testing/src/libraries/core/command/TclBind.cc
r8858 r9224 183 183 184 184 if (bQuery) 185 result = evaluation.query(&error).get String();185 result = evaluation.query(&error).get<std::string>(); 186 186 else 187 187 error = evaluation.execute();
Note: See TracChangeset
for help on using the changeset viewer.