CppCommon
1.0.4.1
C++ Common Library
|
Environment management static class. More...
#include <environment.h>
Public Member Functions | |
Environment ()=delete | |
Environment (const Environment &)=delete | |
Environment (Environment &&)=delete | |
~Environment ()=delete | |
Environment & | operator= (const Environment &)=delete |
Environment & | operator= (Environment &&)=delete |
Static Public Member Functions | |
static bool | Is32BitOS () |
Is 32-bit OS? More... | |
static bool | Is64BitOS () |
Is 64-bit OS? More... | |
static bool | Is32BitProcess () |
Is 32-bit running process? More... | |
static bool | Is64BitProcess () |
Is 64-bit running process? More... | |
static bool | IsDebug () |
Is compiled in debug mode? More... | |
static bool | IsRelease () |
Is compiled in release mode? More... | |
static bool | IsBigEndian () |
Is big-endian system? More... | |
static bool | IsLittleEndian () |
Is little-endian system? More... | |
static std::string | OSVersion () |
Get OS version string. More... | |
static std::string | EndLine () |
Get text end line separator. More... | |
static std::string | UnixEndLine () |
Get Unix text end line separator. More... | |
static std::string | WindowsEndLine () |
Get Windows text end line separator. More... | |
static std::map< std::string, std::string > | envars () |
Get all environment variables. More... | |
static std::string | GetEnvar (const std::string name) |
Get environment variable value by the given name. More... | |
static void | SetEnvar (const std::string name, const std::string value) |
Set environment variable value by the given name. More... | |
static void | ClearEnvar (const std::string name) |
Clear environment variable by the given name. More... | |
Environment management static class.
Provides environment management functionality to get OS bit version, process bit version, debug/release mode.
Thread-safe.
Definition at line 26 of file environment.h.
|
delete |
|
delete |
|
delete |
|
delete |
|
static |
Clear environment variable by the given name.
name | - Environment variable name |
Definition at line 504 of file environment.cpp.
|
static |
Get text end line separator.
Definition at line 415 of file environment.cpp.
|
static |
Get all environment variables.
Definition at line 436 of file environment.cpp.
|
static |
Get environment variable value by the given name.
name | - Environment variable name |
Definition at line 473 of file environment.cpp.
|
static |
|
static |
Is 32-bit running process?
Definition at line 65 of file environment.cpp.
|
static |
|
static |
Is 64-bit running process?
Definition at line 70 of file environment.cpp.
|
static |
Is big-endian system?
Definition at line 103 of file environment.cpp.
|
static |
Is compiled in debug mode?
Definition at line 89 of file environment.cpp.
|
static |
Is little-endian system?
Definition at line 109 of file environment.cpp.
|
static |
Is compiled in release mode?
Definition at line 94 of file environment.cpp.
|
delete |
|
delete |
|
static |
Get OS version string.
Definition at line 115 of file environment.cpp.
|
static |
Set environment variable value by the given name.
name | - Environment variable name |
value | - Environment variable value |
Definition at line 493 of file environment.cpp.
|
static |
Get Unix text end line separator.
Definition at line 426 of file environment.cpp.
|
static |
Get Windows text end line separator.
Definition at line 431 of file environment.cpp.