9 #ifndef CPPCOMMON_SYSTEM_ENVIRONMENT_H
10 #define CPPCOMMON_SYSTEM_ENVIRONMENT_H
72 static std::map<std::string, std::string>
envars();
79 static std::string
GetEnvar(
const std::string name);
85 static void SetEnvar(
const std::string name,
const std::string value);
90 static void ClearEnvar(
const std::string name);
Environment management static class.
static bool IsBigEndian()
Is big-endian system?
static bool Is64BitProcess()
Is 64-bit running process?
static std::string UnixEndLine()
Get Unix text end line separator.
static bool Is64BitOS()
Is 64-bit OS?
static bool Is32BitProcess()
Is 32-bit running process?
static void SetEnvar(const std::string name, const std::string value)
Set environment variable value by the given name.
static bool IsRelease()
Is compiled in release mode?
static void ClearEnvar(const std::string name)
Clear environment variable by the given name.
Environment(Environment &&)=delete
Environment(const Environment &)=delete
static std::map< std::string, std::string > envars()
Get all environment variables.
Environment & operator=(Environment &&)=delete
static bool IsDebug()
Is compiled in debug mode?
static std::string OSVersion()
Get OS version string.
static bool Is32BitOS()
Is 32-bit OS?
static bool IsLittleEndian()
Is little-endian system?
Environment & operator=(const Environment &)=delete
static std::string EndLine()
Get text end line separator.
static std::string WindowsEndLine()
Get Windows text end line separator.
static std::string GetEnvar(const std::string name)
Get environment variable value by the given name.
C++ Common project definitions.