1 |
// Smersh |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _Smersh_hpp_ |
8 |
#define _Smersh_hpp_ |
9 |
|
10 |
#include <iostream> |
11 |
#include <string> |
12 |
#include <sstream> |
13 |
#include <map> |
14 |
|
15 |
using namespace std; |
16 |
|
17 |
inline string sgetenv(const string& name) |
18 |
{ |
19 |
char* value = getenv(name.c_str()); |
20 |
|
21 |
return value != NULL ? value : ""; |
22 |
} |
23 |
|
24 |
class Smersh |
25 |
{ |
26 |
private: |
27 |
multimap<string, string> cgi; |
28 |
void parse(const string& method); |
29 |
public: |
30 |
Smersh(); |
31 |
~Smersh() {} |
32 |
}; |
33 |
|
34 |
#endif // _Smersh_hpp_ |