cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
env.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
6
8
13namespace toolbox::base
14{
15
39CPP_TOOLBOX_EXPORT auto get_environment_variable(const std::string& name)
40 -> std::string;
41
70CPP_TOOLBOX_EXPORT auto set_environment_variable(const std::string& name,
71 const std::string& value)
72 -> bool;
73
103CPP_TOOLBOX_EXPORT auto remove_environment_variable(const std::string& name)
104 -> bool;
105
106} // namespace toolbox::base
#define CPP_TOOLBOX_EXPORT
Definition export.hpp:8
通用的编译器、平台、架构检测和实用宏定义 / Common macros for compiler, platform, architecture detection and utility macro...
工具箱库的基础命名空间 (Base namespace for toolbox library)
Definition task_base.hpp:6
CPP_TOOLBOX_EXPORT auto set_environment_variable(const std::string &name, const std::string &value) -> bool
设置或更新环境变量 (Sets or updates an environment variable)
Definition env.cpp:52
CPP_TOOLBOX_EXPORT auto get_environment_variable(const std::string &name) -> std::string
获取环境变量的值 (Retrieves the value of an environment variable)
Definition env.cpp:28
CPP_TOOLBOX_EXPORT auto remove_environment_variable(const std::string &name) -> bool
从当前进程环境中删除环境变量 (Removes an environment variable from the current process environment)
Definition env.cpp:72