1 |
Douglas Thrift |
173 |
// Smersh |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#ifndef _Environment_hpp_ |
8 |
|
|
#define _Environment_hpp_ |
9 |
|
|
|
10 |
|
|
#include <string> |
11 |
|
|
#include <sstream> |
12 |
|
|
#include <map> |
13 |
|
|
|
14 |
|
|
using namespace std; |
15 |
|
|
|
16 |
|
|
class Environment |
17 |
|
|
{ |
18 |
|
|
private: |
19 |
|
|
map<string, string> env; |
20 |
|
|
public: |
21 |
|
|
Environment() {} |
22 |
|
|
~Environment() {} |
23 |
Douglas Thrift |
176 |
string get(const string& name) const; |
24 |
Douglas Thrift |
173 |
int set(const string& name, const string& value, bool overwrite = true); |
25 |
|
|
int put(const string& env); |
26 |
|
|
void unset(const string& name); |
27 |
|
|
}; |
28 |
|
|
|
29 |
|
|
#endif // _Environment_hpp_ |