1 |
// Feeping Creaturism |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _Environment_hpp_ |
8 |
#define _Environment_hpp_ |
9 |
|
10 |
#include "FeepingCreaturism.hpp" |
11 |
|
12 |
struct Environment |
13 |
{ |
14 |
std::string get(const std::string& name) const; |
15 |
int set(const std::string& name, const std::string& value, |
16 |
bool overwrite = true); |
17 |
int put(const std::string& env); |
18 |
void unset(const std::string& name) { unsetenv(name.c_str()); } |
19 |
}; |
20 |
|
21 |
extern Environment env; |
22 |
|
23 |
#endif // _Environment_hpp_ |