cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
env.hpp File Reference
#include <string>
#include <cpp-toolbox/cpp-toolbox_export.hpp>
#include "cpp-toolbox/macro.hpp"
Include dependency graph for env.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  toolbox::base
 提供基础 C++ 工具和组件。 Provides fundamental C++ utilities and components.
 
namespace  toolbox
 

Functions

CPP_TOOLBOX_EXPORT auto toolbox::base::get_environment_variable (const std::string &name) -> std::string
 获取环境变量的值 (Retrieves the value of an environment variable)
 
CPP_TOOLBOX_EXPORT auto toolbox::base::set_environment_variable (const std::string &name, const std::string &value) -> bool
 设置或更新环境变量 (Sets or updates an environment variable)
 
CPP_TOOLBOX_EXPORT auto toolbox::base::remove_environment_variable (const std::string &name) -> bool
 从当前进程环境中删除环境变量 (Removes an environment variable from the current process environment)