Changeset 1658 for code/branches/core3/src/core/ConfigValueContainer.cc
- Timestamp:
- Aug 14, 2008, 8:52:04 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/core/ConfigValueContainer.cc
r1611 r1658 82 82 for (unsigned int i = 0; i < this->valueVector_.size(); i++) 83 83 { 84 ConfigFileManager::get Singleton()->getValue(this->type_, this->sectionname_, this->varname_, i, this->valueVector_[i].toString(), this->value_.isA(MT_string));84 ConfigFileManager::getInstance()->getValue(this->type_, this->sectionname_, this->varname_, i, this->valueVector_[i].toString(), this->value_.isA(MT_string)); 85 85 this->defvalueStringVector_.push_back(this->valueVector_[i].toString()); 86 86 } … … 113 113 if (this->tset(input)) 114 114 { 115 ConfigFileManager::get Singleton()->setValue(this->type_, this->sectionname_, this->varname_, input.toString(), this->value_.isA(MT_string));115 ConfigFileManager::getInstance()->setValue(this->type_, this->sectionname_, this->varname_, input.toString(), this->value_.isA(MT_string)); 116 116 return true; 117 117 } … … 132 132 if (this->tset(index, input)) 133 133 { 134 ConfigFileManager::get Singleton()->setValue(this->type_, this->sectionname_, this->varname_, index, input.toString(), this->value_.isA(MT_string));134 ConfigFileManager::getInstance()->setValue(this->type_, this->sectionname_, this->varname_, index, input.toString(), this->value_.isA(MT_string)); 135 135 return true; 136 136 } … … 239 239 this->valueVector_.erase(this->valueVector_.begin() + index); 240 240 for (unsigned int i = index; i < this->valueVector_.size(); i++) 241 ConfigFileManager::get Singleton()->setValue(this->type_, this->sectionname_, this->varname_, i, this->valueVector_[i], this->value_.isA(MT_string));242 ConfigFileManager::get Singleton()->deleteVectorEntries(this->type_, this->sectionname_, this->varname_, this->valueVector_.size());241 ConfigFileManager::getInstance()->setValue(this->type_, this->sectionname_, this->varname_, i, this->valueVector_[i], this->value_.isA(MT_string)); 242 ConfigFileManager::getInstance()->deleteVectorEntries(this->type_, this->sectionname_, this->varname_, this->valueVector_.size()); 243 243 244 244 return true; … … 264 264 if (!this->set(i, this->defvalueStringVector_[i])) 265 265 success = false; 266 ConfigFileManager::get Singleton()->deleteVectorEntries(this->type_, this->sectionname_, this->varname_, this->defvalueStringVector_.size());266 ConfigFileManager::getInstance()->deleteVectorEntries(this->type_, this->sectionname_, this->varname_, this->defvalueStringVector_.size()); 267 267 return success; 268 268 } … … 275 275 { 276 276 if (!this->bIsVector_) 277 this->value_.fromString(ConfigFileManager::get Singleton()->getValue(this->type_, this->sectionname_, this->varname_, this->defvalueString_, this->value_.isA(MT_string)));277 this->value_.fromString(ConfigFileManager::getInstance()->getValue(this->type_, this->sectionname_, this->varname_, this->defvalueString_, this->value_.isA(MT_string))); 278 278 else 279 279 { 280 280 this->valueVector_.clear(); 281 for (unsigned int i = 0; i < ConfigFileManager::get Singleton()->getVectorSize(this->type_, this->sectionname_, this->varname_); i++)281 for (unsigned int i = 0; i < ConfigFileManager::getInstance()->getVectorSize(this->type_, this->sectionname_, this->varname_); i++) 282 282 { 283 283 if (i < this->defvalueStringVector_.size()) 284 284 { 285 this->value_.fromString(ConfigFileManager::get Singleton()->getValue(this->type_, this->sectionname_, this->varname_, i, this->defvalueStringVector_[i], this->value_.isA(MT_string)));285 this->value_.fromString(ConfigFileManager::getInstance()->getValue(this->type_, this->sectionname_, this->varname_, i, this->defvalueStringVector_[i], this->value_.isA(MT_string))); 286 286 } 287 287 else 288 288 { 289 this->value_.fromString(ConfigFileManager::get Singleton()->getValue(this->type_, this->sectionname_, this->varname_, i, MultiTypeMath(), this->value_.isA(MT_string)));289 this->value_.fromString(ConfigFileManager::getInstance()->getValue(this->type_, this->sectionname_, this->varname_, i, MultiTypeMath(), this->value_.isA(MT_string))); 290 290 } 291 291
Note: See TracChangeset
for help on using the changeset viewer.