21 #ifndef __EDELIB_RESOURCE_H__
22 #define __EDELIB_RESOURCE_H__
182 bool load(
const char* domain,
const char* prefix =
"ede");
192 bool save(
const char* domain,
const char* prefix =
"ede");
209 operator bool(
void)
const {
return (sys_conf != NULL || user_conf != NULL); }
221 bool get(
const char* section,
const char* key,
char* ret,
unsigned int size,
234 bool get_localized(
const char* section,
const char* key,
char* ret,
unsigned int size,
249 bool get_allocated(
const char* section,
const char* key,
char** ret,
unsigned int& retsize,
332 void set(
const char* section,
const char* key,
char* val);
342 void set(
const char* section,
const char* key,
const char* val);
352 void set_localized(
const char* section,
const char* key,
char* val);
362 void set_localized(
const char* section,
const char* key,
const char* val);
372 void set(
const char* section,
const char* key,
bool val);
382 void set(
const char* section,
const char* key,
int val);
392 void set(
const char* section,
const char* key,
long val);
402 void set(
const char* section,
const char* key,
float val);
412 void set(
const char* section,
const char* key,
double val);
430 static String find_config(
const char* name,
ResourceType rt = RES_USER_FIRST,
const char* prefix =
"ede");
442 static String find_in_config_dir(
const char* name,
ResourceType rt = RES_USER_FIRST,
const char* prefix =
"ede");
453 static String find_data(
const char* name,
ResourceType rt = RES_USER_FIRST,
const char* prefix =
"ede");
A config file reader.
Definition: Config.h:112
Load system resource first.
Definition: Resource.h:33
ResourceType
Flags showing what resource to load first or to load it only.
Definition: Resource.h:32
Resource loader and saver.
Definition: Resource.h:143
Load system resource ignoring user one.
Definition: Resource.h:35
Load user resource ignoring system one.
Definition: Resource.h:36
#define E_DISABLE_CLASS_COPY(klass)
Definition: edelib-global.h:161
A (relatively simple) string implementation.
Definition: String.h:82
Load user resource first.
Definition: Resource.h:34