cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
env.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include <string>
#include "cpp-toolbox/core/macro.hpp"
#include <unistd.h>
#include "cpp-toolbox/runtime/env.hpp"
Include dependency graph for env.cpp:

Namespaces

namespace  toolbox
 
namespace  toolbox::base
 工具箱库的基础命名空间 (Base namespace for toolbox library)
 

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)