24 #ifndef _QORE_SYSTEMENVIRONMENT_H
26 #define _QORE_SYSTEMENVIRONMENT_H
46 DLLLOCAL SystemEnvironment& operator=(
const SystemEnvironment&);
55 DLLLOCAL
static int set_intern(
const char *name,
const char *value,
bool overwrite = 1);
87 DLLLOCAL SystemEnvironment();
88 DLLLOCAL ~SystemEnvironment();
96 DLLEXPORT
static int set(
const char *name,
const char *
value,
bool overwrite = 1);
103 DLLEXPORT
static class QoreString *
get(
const char *name);
118 DLLEXPORT
static int get(
const char *name,
class QoreString &str);
125 DLLEXPORT
static int unset(
const char *name);
132 DLLEXPORT
static bool valueExists(
const char* name);
149 DLLLOCAL AtomicEnvironmentSetter& operator=(
const AtomicEnvironmentSetter&);
152 DLLLOCAL
void*
operator new(size_t);
155 DLLEXPORT AtomicEnvironmentSetter();
156 DLLEXPORT ~AtomicEnvironmentSetter();
164 DLLEXPORT
int set(
const char *name,
const char *value,
bool overwrite = 1);
171 DLLEXPORT
class QoreString *
get(
const char *name);
186 DLLEXPORT
int get(
const char *name,
class QoreString &str);
193 DLLEXPORT
int unset(
const char *name);