13 #ifndef mitkIPreferences_h
14 #define mitkIPreferences_h
59 ChangeEvent(
IPreferences* source,
const std::string& property,
const std::string& oldValue,
const std::string& newValue);
62 std::string GetProperty()
const;
63 std::string GetOldValue()
const;
64 std::string GetNewValue()
const;
68 std::string m_Property;
69 std::string m_OldValue;
70 std::string m_NewValue;
85 virtual std::string
Get(
const std::string& key,
const std::string& def)
const = 0;
96 virtual void Put(
const std::string& key,
const std::string& value) = 0;
105 virtual int GetInt(
const std::string& key,
int def)
const = 0;
112 virtual void PutInt(
const std::string& key,
int value) = 0;
120 virtual bool GetBool(
const std::string& key,
bool def)
const = 0;
128 virtual void PutBool(
const std::string& key,
bool value) = 0;
137 virtual float GetFloat(
const std::string& key,
float def)
const = 0;
144 virtual void PutFloat(
const std::string& key,
float value) = 0;
153 virtual double GetDouble(
const std::string& key,
double def)
const = 0;
160 virtual void PutDouble(
const std::string& key,
double value) = 0;
180 virtual std::vector<std::byte> GetByteArray(
const std::string& key,
const std::byte* def,
size_t size)
const = 0;
199 virtual void PutByteArray(
const std::string& key,
const std::byte* array,
size_t size) = 0;
210 virtual void Flush() = 0;
217 virtual void Remove(
const std::string& key) = 0;
222 virtual void Clear() = 0;
227 virtual std::vector<std::string> Keys()
const = 0;
237 virtual std::string Name()
const = 0;
245 virtual std::string AbsolutePath()
const = 0;
250 virtual std::vector<std::string> ChildrenNames()
const = 0;
282 virtual IPreferences* Node(
const std::string& path) = 0;
290 virtual void RemoveNode() = 0;