- Timestamp:
- Aug 19, 2010, 5:48:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/ConfigFileManager.cc
r7163 r7190 543 543 } 544 544 545 bool SettingsConfigFile::config(const std::string& section, const std::string& entry, const std::string& value) 546 { 547 return this->configImpl(section, entry, value, &ConfigValueContainer::set); 548 } 549 550 bool SettingsConfigFile::tconfig(const std::string& section, const std::string& entry, const std::string& value) 551 { 552 return this->configImpl(section, entry, value, &ConfigValueContainer::tset); 545 void SettingsConfigFile::config(const std::string& section, const std::string& entry, const std::string& value) 546 { 547 if (!this->configImpl(section, entry, value, &ConfigValueContainer::set)) 548 COUT(1) << "Error: Config value \"" << entry << "\" in section \"" << section << "\" doesn't exist." << std::endl; 549 } 550 551 void SettingsConfigFile::tconfig(const std::string& section, const std::string& entry, const std::string& value) 552 { 553 if (!this->configImpl(section, entry, value, &ConfigValueContainer::tset)) 554 COUT(1) << "Error: Config value \"" << entry << "\" in section \"" << section << "\" doesn't exist." << std::endl; 553 555 } 554 556
Note: See TracChangeset
for help on using the changeset viewer.