Changeset 6388 in orxonox.OLD for branches/preferences/src/lib/util/preferences.h
- Timestamp:
- Jan 2, 2006, 11:09:42 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/preferences/src/lib/util/preferences.h
r6381 r6388 9 9 #include "base_object.h" 10 10 #include "multi_type.h" 11 #include "lib/parser/ini_parser/ini_parser.h" 11 12 12 13 // FORWARD DECLARATION 13 14 15 class IniFilePrefsReader; 14 16 15 17 typedef struct { 16 18 char* name; 17 19 MultiType value; 20 bool modified; 18 21 } prefItem; 19 22 … … 35 38 bool exists(const char* section, const char* name); 36 39 37 void setString(const char* section, const char* name, const char* value );38 void setInt(const char* section, const char* name, int value );39 void setFloat(const char* section, const char* name, float value );40 void setMultiType(const char* section, const char* name, const MultiType& value);40 void setString(const char* section, const char* name, const char* value, bool dontSetModified = false); 41 void setInt(const char* section, const char* name, int value, bool dontSetModified = false); 42 void setFloat(const char* section, const char* name, float value, bool dontSetModified = false); 43 void setMultiType(const char* section, const char* name, MultiType& value, bool dontSetModified = false); 41 44 42 45 const char* getString(const char* section, const char* name, const char* defaultValue); … … 44 47 float getFloat(const char* section, const char* name, float defaultValue); 45 48 MultiType getMultiType(const char* section, const char* name, const MultiType& defaultValue); 49 50 void setUserIni(const char* fileName); 51 52 bool save(); 46 53 47 54 … … 54 61 55 62 std::list<prefSection> data; 63 64 std::list<IniFilePrefsReader*> iniFilePrefsReaders; 65 66 char* fileName; 67 56 68 }; 57 69
Note: See TracChangeset
for help on using the changeset viewer.