Changeset 1027 for code/branches/core2/src/orxonox/core/ConfigFileManager.h
- Timestamp:
- Apr 10, 2008, 6:44:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/ConfigFileManager.h
r1025 r1027 65 65 virtual const std::string& getValue() const = 0; 66 66 virtual const std::string& getName() const = 0; 67 virtual void setComment(const std::string& comment) = 0; 67 68 virtual unsigned int getIndex() const { return 0; } 68 69 virtual std::string getFileEntry() const = 0; … … 81 82 inline virtual const std::string& getName() const 82 83 { return this->name_; } 84 85 inline virtual void setComment(const std::string& comment) 86 { this->additionalComment_ = comment; } 83 87 84 88 inline virtual void setValue(const std::string& value) … … 133 137 { return this->comment_; } 134 138 139 inline virtual void setComment(const std::string& comment) 140 { this->comment_ = comment; } 141 135 142 inline virtual void setValue(const std::string& value) 136 143 {} … … 159 166 inline const std::string& getName() const 160 167 { return this->name_; } 168 169 inline void setComment(const std::string& comment) 170 { this->additionalComment_ = comment; } 161 171 162 172 inline void setValue(const std::string& name, const std::string& value) … … 204 214 ~ConfigFile(); 205 215 206 void load( );216 void load(bool bCreateIfNotExisting = true); 207 217 void save() const; 208 218 void clean(); … … 236 246 static ConfigFileManager* getSingleton(); 237 247 238 void setFile(ConfigFileType type, const std::string& filename );239 240 void load( );248 void setFile(ConfigFileType type, const std::string& filename, bool bCreateIfNotExisting = true); 249 250 void load(bool bCreateIfNotExisting = true); 241 251 void save(); 242 252 void clean(); 243 253 244 void load(ConfigFileType type );254 void load(ConfigFileType type, bool bCreateIfNotExisting = true); 245 255 void save(ConfigFileType type); 246 256 void clean(ConfigFileType type);
Note: See TracChangeset
for help on using the changeset viewer.