Changeset 1025 for code/branches/core2/src/orxonox/core/ConfigFileManager.h
- Timestamp:
- Apr 10, 2008, 5:53:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/ConfigFileManager.h
r1023 r1025 211 211 { this->getSection(section)->setValue(name, value); this->save(); } 212 212 inline const std::string& getValue(const std::string& section, const std::string& name, const std::string& fallback) 213 { return this->getSection(section)->getValue(name, fallback); this->saveIfUpdated(); }213 { const std::string& output = this->getSection(section)->getValue(name, fallback); this->saveIfUpdated(); return output; } 214 214 215 215 inline void setValue(const std::string& section, const std::string& name, unsigned int index, const std::string& value) 216 216 { this->getSection(section)->setValue(name, index, value); this->save(); } 217 217 inline const std::string& getValue(const std::string& section, const std::string& name, unsigned int index, const std::string& fallback) 218 { return this->getSection(section)->getValue(name, index, fallback); this->saveIfUpdated(); }218 { const std::string& output = this->getSection(section)->getValue(name, index, fallback); this->saveIfUpdated(); return output; } 219 219 220 220 private:
Note: See TracChangeset
for help on using the changeset viewer.