24#ifndef ENVIRONMENT_HPP
25#define ENVIRONMENT_HPP
53 void feed(
char** env);
61 bool get_value_of(
const std::string & var, std::string & value)
const;
71 std::map<std::string, std::string> envir;
class environment holds environment variables passed to webdar from its parent process (a shell for e...
Definition: environment.hpp:43
std::string get_value_with_default(const std::string &var, const std::string &defaulted) const
provide the value associated to a given environment variable or the provided defaulted value
Definition: environment.cpp:78
bool get_value_of(const std::string &var, std::string &value) const
provide the value associated to a given environment variable
Definition: environment.cpp:65
void feed(char **env)
feed the object with the system provided environment
Definition: environment.cpp:45