1 |
Douglas Thrift |
162 |
// 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 |
Douglas Thrift |
164 |
#include <vector> |
14 |
Douglas Thrift |
162 |
#include <map> |
15 |
Douglas Thrift |
167 |
#include <algorithm> |
16 |
Douglas Thrift |
168 |
#include <cstdlib> |
17 |
Douglas Thrift |
166 |
#include <cctype> |
18 |
Douglas Thrift |
176 |
#include <ctime> |
19 |
Douglas Thrift |
162 |
|
20 |
Douglas Thrift |
168 |
#include <menes-ext/casts.hpp> |
21 |
Douglas Thrift |
170 |
#include <menes-xml/document.hpp> |
22 |
|
|
#include <menes-xml/nodeset.hpp> |
23 |
|
|
#include <menes-xml/parse.hpp> |
24 |
Douglas Thrift |
168 |
|
25 |
Douglas Thrift |
162 |
using namespace std; |
26 |
|
|
|
27 |
Douglas Thrift |
170 |
extern string program; |
28 |
|
|
extern bool debug; |
29 |
|
|
|
30 |
Douglas Thrift |
173 |
#include "Environment.hpp" |
31 |
|
|
|
32 |
Douglas Thrift |
166 |
class Person; |
33 |
|
|
|
34 |
Douglas Thrift |
162 |
class Smersh |
35 |
|
|
{ |
36 |
|
|
private: |
37 |
Douglas Thrift |
173 |
static Environment env; |
38 |
Douglas Thrift |
162 |
multimap<string, string> cgi; |
39 |
Douglas Thrift |
176 |
void parse(istream& sin, const Environment& env); |
40 |
Douglas Thrift |
166 |
void smersh(ostream& sout); |
41 |
|
|
void output(ostream& sout, const vector<Person>& people); |
42 |
Douglas Thrift |
162 |
public: |
43 |
Douglas Thrift |
176 |
Smersh(istream& sin = cin, ostream& sout = cout, const Environment& env = |
44 |
|
|
env); |
45 |
Douglas Thrift |
162 |
~Smersh() {} |
46 |
|
|
}; |
47 |
|
|
|
48 |
|
|
#endif // _Smersh_hpp_ |