32 #ifndef _QORE_SYSTEMENVIRONMENT_H
34 #define _QORE_SYSTEMENVIRONMENT_H
63 DLLLOCAL
static int set_intern(
const char *name,
const char *value,
bool overwrite = 1);
104 DLLEXPORT
static int set(
const char *name,
const char *
value,
bool overwrite = 1);
133 DLLEXPORT
static int unset(
const char *name);
160 DLLLOCAL
void*
operator new(size_t);
172 DLLEXPORT
int set(
const char *name,
const char *value,
bool overwrite = 1);
201 DLLEXPORT
int unset(
const char *name);
bool value
this is true for values, if false then either the type needs evaluation to produce a value or is a pa...
Definition: AbstractQoreNode.h:330
class allowing for multiple updates to the system environment within a single lock in a thread-safe w...
Definition: SystemEnvironment.h:151
DLLEXPORT int set(const char *name, const char *value, bool overwrite=1)
sets the given environment variable to the value passed, respecting the overwrite flag
DLLEXPORT class QoreStringNode * getAsStringNode(const char *name)
returns the value of the environment variable as a new QoreStringNode object, 0 if not present,...
DLLEXPORT class QoreString * get(const char *name)
returns the value of the environment variable as a new QoreString object, 0 if not present,...
DLLEXPORT int unset(const char *name)
unsets the given environment variable
DLLEXPORT bool valueExists(const char *name)
returns true if the environment variable exists and has a value, false if not
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:93
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
class used to safely manipulate the system environment
Definition: SystemEnvironment.h:46
static DLLLOCAL int unset_intern(const char *name)
unsets the given environment variable
static DLLEXPORT bool valueExists(const char *name)
returns true if the environment variable exists and has a value, false if not
static DLLEXPORT int set(const char *name, const char *value, bool overwrite=1)
sets the given environment variable to the value passed, respecting the overwrite flag
static DLLEXPORT int unset(const char *name)
unsets the given environment variable
static DLLLOCAL class QoreStringNode * get_as_string_node_intern(const char *name)
returns the value of the environment variable as a new QoreStringNode object, 0 if not present,...
static DLLLOCAL class QoreString * get_intern(const char *name)
returns the value of the environment variable as a new QoreString object, 0 if not present,...
static DLLEXPORT class QoreString * get(const char *name)
returns the value of the environment variable as a new QoreString object, 0 if not present,...
static DLLEXPORT class QoreStringNode * getAsStringNode(const char *name)
returns the value of the environment variable as a new QoreStringNode object, 0 if not present,...
static DLLLOCAL int set_intern(const char *name, const char *value, bool overwrite=1)
sets the given environment variable to the value passed, respecting the overwrite flag