|
RSTools 3.1.0
Versatile C++20 utility library
|
#include <optional>#include <string>#include <string_view>Go to the source code of this file.
Namespaces | |
| namespace | RST |
| Root namespace of RSTools. | |
| namespace | RST::System |
| Portable access to system information, environment variables, files and paths. | |
Functions | |
Environment variables | |
| std::optional< std::string > | RST::System::getEnv (std::string_view name) |
Value of the variable name, or std::nullopt if it is not set. | |
| bool | RST::System::setEnv (std::string_view name, std::string_view value, bool overwrite=true) |
Sets name to value, unless it is already set and overwrite is false; returns false on failure. | |
| bool | RST::System::unsetEnv (std::string_view name) |
Removes name from the environment; returns false on failure. | |