| 
    CppCommon 1.0.5.0
    
   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?   | |
| static bool | Is64BitOS () | 
| Is 64-bit OS?   | |
| static bool | Is32BitProcess () | 
| Is 32-bit running process?   | |
| static bool | Is64BitProcess () | 
| Is 64-bit running process?   | |
| static bool | IsDebug () | 
| Is compiled in debug mode?   | |
| static bool | IsRelease () | 
| Is compiled in release mode?   | |
| static bool | IsBigEndian () | 
| Is big-endian system?   | |
| static bool | IsLittleEndian () | 
| Is little-endian system?   | |
| static std::string | OSVersion () | 
| Get OS version string.   | |
| static std::string | EndLine () | 
| Get text end line separator.   | |
| static std::string | UnixEndLine () | 
| Get Unix text end line separator.   | |
| static std::string | WindowsEndLine () | 
| Get Windows text end line separator.   | |
| static std::map< std::string, std::string > | envars () | 
| Get all environment variables.   | |
| static std::string | GetEnvar (const std::string name) | 
| Get environment variable value by the given name.   | |
| static void | SetEnvar (const std::string name, const std::string value) | 
| Set environment variable value by the given name.   | |
| static void | ClearEnvar (const std::string name) | 
| Clear environment variable by the given name.   | |
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 509 of file environment.cpp.
      
  | 
  static | 
Get text end line separator.
Definition at line 420 of file environment.cpp.
      
  | 
  static | 
Get all environment variables.
Definition at line 441 of file environment.cpp.
      
  | 
  static | 
Get environment variable value by the given name.
| name | - Environment variable name | 
Definition at line 478 of file environment.cpp.
      
  | 
  static | 
      
  | 
  static | 
Is 32-bit running process?
Definition at line 70 of file environment.cpp.
      
  | 
  static | 
      
  | 
  static | 
Is 64-bit running process?
Definition at line 75 of file environment.cpp.
      
  | 
  static | 
Is big-endian system?
Definition at line 108 of file environment.cpp.
      
  | 
  static | 
Is compiled in debug mode?
Definition at line 94 of file environment.cpp.
      
  | 
  static | 
Is little-endian system?
Definition at line 114 of file environment.cpp.
      
  | 
  static | 
Is compiled in release mode?
Definition at line 99 of file environment.cpp.
      
  | 
  delete | 
      
  | 
  delete | 
      
  | 
  static | 
Get OS version string.
Definition at line 120 of file environment.cpp.
      
  | 
  static | 
Set environment variable value by the given name.
| name | - Environment variable name | 
| value | - Environment variable value | 
Definition at line 498 of file environment.cpp.
      
  | 
  static | 
Get Unix text end line separator.
Definition at line 431 of file environment.cpp.
      
  | 
  static | 
Get Windows text end line separator.
Definition at line 436 of file environment.cpp.