22 #ifndef CRNConfigurationFile_HEADER
23 #define CRNConfigurationFile_HEADER
Path GetUserDirectory() const
Returns the path to the user configuration directory.
ConfigurationFile & operator=(const ConfigurationFile &)=delete
void SetData(const String &key, T value)
Sets a key/value pair.
SObject & operator[](const String &key)
Gets a value.
Path Load()
Loads the file.
double GetDouble(const String &key) const
Gets a double.
void Set(const String &key, SObject value)
Sets a value for a key with constraints check.
SObject GetData(const String &key)
Gets a value.
A UTF32 character string class.
UInt ToCRN(int i)
Converts an int to CRN data.
A convenience class for file paths.
Path Save()
Saves the file to the user's personal space.
String GetString(const String &key) const
Gets a string.
ConfigurationFile(const String &application_name, const StringUTF8 &file_name="", ConfigurationType ctype=ConfigurationType::APP)
Constructor.
Prop3 GetProp3(const String &key) const
Gets a Prop3.
StringUTF8 GetStringUTF8(const String &key) const
Gets a UTF8 string.
int GetInt(const String &key) const
Gets an int.
#define CRN_DECLARE_CLASS_CONSTRUCTOR(classname)
Declares a class constructor.
CRN_ALIAS_SMART_PTR(ImageBW)
A character string class.
Configuration file management utility class.
Path GetPath(const String &key) const
Gets a path.