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