Changeset 7190 for code/branches/consolecommands3/src/libraries/core
- Timestamp:
- Aug 19, 2010, 5:48:01 PM (14 years ago)
- Location:
- code/branches/consolecommands3/src/libraries/core
- Files:
-
- 2 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 -
code/branches/consolecommands3/src/libraries/core/ConfigFileManager.h
r7163 r7190 331 331 void clean(bool bCleanComments = false); // tolua_export 332 332 333 boolconfig(const std::string& section, const std::string& entry, const std::string& value); // tolua_export334 booltconfig(const std::string& section, const std::string& entry, const std::string& value); // tolua_export333 void config(const std::string& section, const std::string& entry, const std::string& value); // tolua_export 334 void tconfig(const std::string& section, const std::string& entry, const std::string& value); // tolua_export 335 335 std::string getConfig(const std::string& section, const std::string& entry); // tolua_export 336 336
Note: See TracChangeset
for help on using the changeset viewer.