XII Release 0.1.0
Loading...
Searching...
No Matches
xiiEnvironmentVariableUtils Class Reference

This is a helper class to interact with environment variables. More...

#include <EnvironmentVariableUtils.h>

Static Public Member Functions

static xiiString GetValueString (xiiStringView sName, xiiStringView sDefault=nullptr)
 Returns the current value of the request environment variable. If it isn't set szDefault will be returned.
 
static xiiResult SetValueString (xiiStringView sName, xiiStringView sValue)
 Sets the environment variable for the current execution environment (i.e. this process and child processes created after this call).
 
static xiiInt32 GetValueInt (xiiStringView sName, xiiInt32 iDefault=-1)
 Returns the current value of the request environment variable. If it isn't set iDefault will be returned.
 
static xiiResult SetValueInt (xiiStringView sName, xiiInt32 iValue)
 Sets the environment variable for the current execution environment.
 
static bool IsVariableSet (xiiStringView sName)
 Returns true if the environment variable with the given name is set, false otherwise.
 
static xiiResult UnsetVariable (xiiStringView sName)
 Removes an environment variable from the current execution context (i.e. this process and child processes created after this call).
 

Detailed Description

This is a helper class to interact with environment variables.


The documentation for this class was generated from the following files: