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
5#include <cpp-toolbox/cpp-toolbox_export.hpp>
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
104 -> bool;
105
106} // namespace toolbox::base
Definition object_pool.hpp:100
通用的编译器、平台、架构检测和实用宏定义 / Common macros for compiler, platform, architecture detection and utility macro...
提供基础 C++ 工具和组件。 Provides fundamental C++ utilities and components.
CPP_TOOLBOX_EXPORT auto get_environment_variable(const std::string &name) -> std::string
获取环境变量的值 (Retrieves the value of an environment variable)
CPP_TOOLBOX_EXPORT auto remove_environment_variable(const std::string &name) -> bool
从当前进程环境中删除环境变量 (Removes an environment variable from the current process environment)
CPP_TOOLBOX_EXPORT auto set_environment_variable(const std::string &name, const std::string &value) -> bool
设置或更新环境变量 (Sets or updates an environment variable)