1 #if !defined(__ENVIRONMENT_HPP) 2 #define __ENVIRONMENT_HPP 24 #if !defined IN_COMMON_HPP 25 #error Environment.hpp is included by Common.hpp only. 31 DECLARE_CLASS(Environment);
static void setThreadPriority(ProcessIdentifier, Int)
set priority for a specific process
Definition: Environment.cpp:206
static Int getThreadPriority(ProcessIdentifier)
get priority for a specific process
Definition: Environment.cpp:211
static ProcessIdentifier getProcessGroupId(void)
Retrieve the process group id for the current process.
Definition: Environment.cpp:72
static Int setEnvironmentNameValue(CharPtr)
Sets an environment name=value.
Definition: Environment.cpp:93
static Int removeCommonAccess(CharCptr)
The reverse of setupCommonAccess.
Definition: Environment.cpp:187
static UserIdentifier getEffectiveUserId(void)
Retreive the effective user id for the current process.
Definition: Environment.cpp:51
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
CreateDisposition
Creation dispositions for various system utilities.
Definition: AccessRights.hpp:63
ScalarIdentifier provides a templated interface for declaring CoreLinux Identifiers for simple scalar...
Definition: ScalarIdentifiers.hpp:37
Environment is a class utility which encapsulates.
Definition: Environment.hpp:37
static UserIdentifier getUserId(void)
Retreive the real user id for the current process.
Definition: Environment.cpp:44
static Int setupCommonAccess(CharCptr, const CreateDisposition &)
Basically, creates a filename for use by those Linux system api that require a key (IPC mainly)...
Definition: Environment.cpp:103
Assertion is-a Exception created when an assertion fails.
Definition: Assertion.hpp:423
static CharPtr getEnvironmentValue(CharCptr)
Retrieve the environmental value variable from the (name=value) pair.
Definition: Environment.cpp:86
static GroupIdentifier getGroupId(void)
Retreive the real group id for the current process.
Definition: Environment.cpp:58
bool operator==(EnvironmentCref) const
Equality operator.
Definition: Environment.hpp:43
static GroupIdentifier getEffectiveGroupId(void)
Retreive the effective group id for the current process.
Definition: Environment.cpp:65