Operating System helper static class used internally. You should not use it.
More...
#include <easylogging++.h>
Operating System helper static class used internally. You should not use it.
static std::string el::base::utils::OS::currentHost |
( |
void |
| ) |
|
|
inlinestatic |
Gets current host name or computer name.
For android systems this is device name with its manufacturer and model seperated by hyphen
static std::string el::base::utils::OS::currentHost |
( |
void |
| ) |
|
|
inlinestatic |
Gets current host name or computer name.
For android systems this is device name with its manufacturer and model seperated by hyphen
static std::string el::base::utils::OS::currentHost |
( |
void |
| ) |
|
|
inlinestatic |
Gets current host name or computer name.
For android systems this is device name with its manufacturer and model seperated by hyphen
static std::string el::base::utils::OS::currentUser |
( |
void |
| ) |
|
|
inlinestatic |
static std::string el::base::utils::OS::currentUser |
( |
void |
| ) |
|
|
inlinestatic |
static std::string el::base::utils::OS::currentUser |
( |
void |
| ) |
|
|
inlinestatic |
static const std::string el::base::utils::OS::getBashOutput |
( |
const char * |
command | ) |
|
|
inlinestatic |
Runs command on terminal and returns the output.
This is applicable only on unix based systems, for all other OS, an empty string is returned.
- Parameters
-
- Returns
- Result of bash output or empty string if no result found.
static const std::string el::base::utils::OS::getBashOutput |
( |
const char * |
command | ) |
|
|
inlinestatic |
Runs command on terminal and returns the output.
This is applicable only on unix based systems, for all other OS, an empty string is returned.
- Parameters
-
- Returns
- Result of bash output or empty string if no result found.
static const std::string el::base::utils::OS::getBashOutput |
( |
const char * |
command | ) |
|
|
inlinestatic |
Runs command on terminal and returns the output.
This is applicable only on unix based systems, for all other OS, an empty string is returned.
- Parameters
-
- Returns
- Result of bash output or empty string if no result found.
static std::string el::base::utils::OS::getEnvironmentVariable |
( |
const char * |
variableName, |
|
|
const char * |
defaultVal, |
|
|
const char * |
alternativeBashCommand = nullptr |
|
) |
| |
|
inlinestatic |
Gets environment variable. This is cross-platform and CRT safe (for VC++)
- Parameters
-
variableName | Environment variable name |
defaultVal | If no environment variable or value found the value to return by default |
alternativeBashCommand | If environment variable not found what would be alternative bash command in order to look for value user is looking for. E.g, for 'user' alternative command will 'whoami' |
static std::string el::base::utils::OS::getEnvironmentVariable |
( |
const char * |
variableName, |
|
|
const char * |
defaultVal, |
|
|
const char * |
alternativeBashCommand = nullptr |
|
) |
| |
|
inlinestatic |
Gets environment variable. This is cross-platform and CRT safe (for VC++)
- Parameters
-
variableName | Environment variable name |
defaultVal | If no environment variable or value found the value to return by default |
alternativeBashCommand | If environment variable not found what would be alternative bash command in order to look for value user is looking for. E.g, for 'user' alternative command will 'whoami' |
static std::string el::base::utils::OS::getEnvironmentVariable |
( |
const char * |
variableName, |
|
|
const char * |
defaultVal, |
|
|
const char * |
alternativeBashCommand = nullptr |
|
) |
| |
|
inlinestatic |
Gets environment variable. This is cross-platform and CRT safe (for VC++)
- Parameters
-
variableName | Environment variable name |
defaultVal | If no environment variable or value found the value to return by default |
alternativeBashCommand | If environment variable not found what would be alternative bash command in order to look for value user is looking for. E.g, for 'user' alternative command will 'whoami' |
static bool el::base::utils::OS::termSupportsColor |
( |
void |
| ) |
|
|
inlinestatic |
Whether or not terminal supports colors.
static bool el::base::utils::OS::termSupportsColor |
( |
void |
| ) |
|
|
inlinestatic |
Whether or not terminal supports colors.
static bool el::base::utils::OS::termSupportsColor |
( |
void |
| ) |
|
|
inlinestatic |
Whether or not terminal supports colors.
The documentation for this class was generated from the following files: