#include <sbuild-environment.h>
Inheritance diagram for sbuild::environment:


Public Member Functions | |
| environment () | |
| The constructor. | |
| environment (char **environment) | |
| The constructor. | |
| ~environment () | |
| The destructor. | |
| void | add (char **environment) |
| Add environment variables. | |
| void | add (environment const &environment) |
| Add environment variables. | |
| void | add (value_type const &value) |
| Add environment variable. | |
| void | add (std::string const &name, std::string const &value) |
| Add environment variable. | |
| template<typename T> | |
| void | add (std::string const &name, T const &value) |
| Add environment variable. | |
| void | add (std::string const &value) |
| Add environment variable. | |
| void | remove (char **environment) |
| Remove environment variables. | |
| void | remove (environment const &environment) |
| Remove environment variables. | |
| void | remove (std::string const &value) |
| Remove environment variable. | |
| void | remove (value_type const &value) |
| Remove environment variable. | |
| template<typename T> | |
| bool | get (std::string const &name, T &value) |
| Get the value of an environment variable. | |
| char ** | get_strv () const |
| Get the evironment variables as a string vector. | |
| template<typename T> | |
| environment & | operator+= (T &rhs) |
| Add variables to the environment. | |
| template<typename T> | |
| environment & | operator-= (T &rhs) |
| Remove variables from the environment. | |
Friends | |
| template<typename T> | |
| environment | operator+ (environment const &lhs, T const &rhs) |
| Add variables to the environment. | |
| template<typename T> | |
| environment | operator- (environment const &lhs, T const &rhs) |
| Remove variables from the environment. | |
| template<class charT, class traits> | |
| std::basic_ostream< charT, traits > & | operator<< (std::basic_ostream< charT, traits > &stream, environment const &rhs) |
| Output the environment to an ostream. | |
|
|
The constructor.
|
|
|
The constructor.
|
|
|
The destructor.
|
|
|
Add environment variable. Any existing variable sharing the name will be replaced.
|
|
||||||||||||||||
|
Add environment variable. Any existing variable sharing the name will be replaced.
Here is the call graph for this function: ![]() |
|
||||||||||||
|
Add environment variable. Any existing variable sharing the name will be replaced.
Here is the call graph for this function: ![]() |
|
|
Add environment variable. Any existing variable sharing the name will be replaced.
|
|
|
Add environment variables. Any existing variables sharing the name of a new value will be replaced.
|
|
|
Add environment variables. Any existing variables sharing the name of a new value will be replaced.
|
|
||||||||||||||||
|
Get the value of an environment variable.
Here is the call graph for this function: ![]() |
|
|
Get the evironment variables as a string vector. This form is suitable for use as an envp argument with execve, for example.
|
|
||||||||||
|
Add variables to the environment.
Here is the call graph for this function: ![]() |
|
||||||||||
|
Remove variables from the environment.
Here is the call graph for this function: ![]() |
|
|
Remove environment variable. Any variable sharing the name of the specified value will be removed.
|
|
|
Remove environment variable. Any variable sharing the name of the specified value will be removed.
|
|
|
Remove environment variables. Any variables sharing the names of a specified value will be removed.
|
|
|
Remove environment variables. Any variables sharing the names of a specified value will be removed.
|
|
||||||||||||||||
|
Add variables to the environment.
|
|
||||||||||||||||
|
Remove variables from the environment.
|
|
||||||||||||||||
|
Output the environment to an ostream.
|
1.4.6