Changeset 1795 for code/trunk/src/core/ConfigValueContainer.cc
- Timestamp:
- Sep 17, 2008, 11:49:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/ConfigValueContainer.cc
r1791 r1795 83 83 for (unsigned int i = 0; i < this->valueVector_.size(); i++) 84 84 { 85 ConfigFileManager::getInstance() ->getValue(this->type_, this->sectionname_, this->varname_, i, this->valueVector_[i], this->value_.isType(MT_string));85 ConfigFileManager::getInstance().getValue(this->type_, this->sectionname_, this->varname_, i, this->valueVector_[i], this->value_.isType(MT_string)); 86 86 this->defvalueStringVector_.push_back(this->valueVector_[i]); 87 87 } … … 114 114 if (this->tset(input)) 115 115 { 116 ConfigFileManager::getInstance() ->setValue(this->type_, this->sectionname_, this->varname_, input, this->value_.isType(MT_string));116 ConfigFileManager::getInstance().setValue(this->type_, this->sectionname_, this->varname_, input, this->value_.isType(MT_string)); 117 117 return true; 118 118 } … … 133 133 if (this->tset(index, input)) 134 134 { 135 ConfigFileManager::getInstance() ->setValue(this->type_, this->sectionname_, this->varname_, index, input, this->value_.isType(MT_string));135 ConfigFileManager::getInstance().setValue(this->type_, this->sectionname_, this->varname_, index, input, this->value_.isType(MT_string)); 136 136 return true; 137 137 } … … 233 233 this->valueVector_.erase(this->valueVector_.begin() + index); 234 234 for (unsigned int i = index; i < this->valueVector_.size(); i++) 235 ConfigFileManager::getInstance() ->setValue(this->type_, this->sectionname_, this->varname_, i, this->valueVector_[i], this->value_.isType(MT_string));236 ConfigFileManager::getInstance() ->deleteVectorEntries(this->type_, this->sectionname_, this->varname_, this->valueVector_.size());235 ConfigFileManager::getInstance().setValue(this->type_, this->sectionname_, this->varname_, i, this->valueVector_[i], this->value_.isType(MT_string)); 236 ConfigFileManager::getInstance().deleteVectorEntries(this->type_, this->sectionname_, this->varname_, this->valueVector_.size()); 237 237 238 238 return true; … … 258 258 if (!this->set(i, this->defvalueStringVector_[i])) 259 259 success = false; 260 ConfigFileManager::getInstance() ->deleteVectorEntries(this->type_, this->sectionname_, this->varname_, this->defvalueStringVector_.size());260 ConfigFileManager::getInstance().deleteVectorEntries(this->type_, this->sectionname_, this->varname_, this->defvalueStringVector_.size()); 261 261 return success; 262 262 } … … 269 269 { 270 270 if (!this->bIsVector_) 271 this->value_ = ConfigFileManager::getInstance() ->getValue(this->type_, this->sectionname_, this->varname_, this->defvalueString_, this->value_.isType(MT_string));271 this->value_ = ConfigFileManager::getInstance().getValue(this->type_, this->sectionname_, this->varname_, this->defvalueString_, this->value_.isType(MT_string)); 272 272 else 273 273 { 274 274 this->valueVector_.clear(); 275 for (unsigned int i = 0; i < ConfigFileManager::getInstance() ->getVectorSize(this->type_, this->sectionname_, this->varname_); i++)275 for (unsigned int i = 0; i < ConfigFileManager::getInstance().getVectorSize(this->type_, this->sectionname_, this->varname_); i++) 276 276 { 277 277 if (i < this->defvalueStringVector_.size()) 278 278 { 279 this->value_ = ConfigFileManager::getInstance() ->getValue(this->type_, this->sectionname_, this->varname_, i, this->defvalueStringVector_[i], this->value_.isType(MT_string));279 this->value_ = ConfigFileManager::getInstance().getValue(this->type_, this->sectionname_, this->varname_, i, this->defvalueStringVector_[i], this->value_.isType(MT_string)); 280 280 } 281 281 else 282 282 { 283 this->value_ = ConfigFileManager::getInstance() ->getValue(this->type_, this->sectionname_, this->varname_, i, MultiType(), this->value_.isType(MT_string));283 this->value_ = ConfigFileManager::getInstance().getValue(this->type_, this->sectionname_, this->varname_, i, MultiType(), this->value_.isType(MT_string)); 284 284 } 285 285
Note: See TracChangeset
for help on using the changeset viewer.