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 <vector> |
14 |
#include <map> |
15 |
|
16 |
using namespace std; |
17 |
|
18 |
#include <menes-ext/casts.hpp> |
19 |
|
20 |
inline string sgetenv(const string& name) |
21 |
{ |
22 |
char* value = getenv(name.c_str()); |
23 |
|
24 |
return value != NULL ? value : ""; |
25 |
} |
26 |
|
27 |
class Smersh |
28 |
{ |
29 |
private: |
30 |
multimap<string, string> cgi; |
31 |
void parse(const string& method); |
32 |
public: |
33 |
Smersh(ostream& sout = cout); |
34 |
~Smersh() {} |
35 |
}; |
36 |
|
37 |
#endif // _Smersh_hpp_ |