1 |
// Smersh |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _Smersh_hpp_ |
8 |
#define _Smersh_hpp_ |
9 |
|
10 |
#include <menes/platform.hpp> |
11 |
|
12 |
#ifndef MENES_PRAGMA_ONCE |
13 |
#pragma once |
14 |
#endif |
15 |
|
16 |
#include <iostream> |
17 |
#include <sstream> |
18 |
#include <fstream> |
19 |
//#include <vector> |
20 |
#include <map> |
21 |
#include <algorithm> |
22 |
#include <cstdlib> |
23 |
#include <cctype> |
24 |
#include <ctime> |
25 |
|
26 |
#include <menes-api/console.hpp> |
27 |
#include <menes-ext/casts.hpp> |
28 |
#include <menes-ext/foreach.hpp> |
29 |
#include <menes-xml/document.hpp> |
30 |
#include <menes-xml/nodeset.hpp> |
31 |
#include <menes-xml/parse.hpp> |
32 |
|
33 |
#include "Environment.hpp" |
34 |
|
35 |
class Person; |
36 |
|
37 |
class Smersh |
38 |
{ |
39 |
private: |
40 |
static Environment env; |
41 |
multimap<std::string, std::string> cgi; |
42 |
void parse(std::istream& sin, const Environment& env); |
43 |
void smersh(std::ostream& sout, const Environment& env); |
44 |
void output(std::ostream& sout, const ext::RedBlackSet<Person>& people); |
45 |
public: |
46 |
Smersh(std::istream& sin = std::cin, std::ostream& sout = std::cout, const Environment& env = env); |
47 |
static ext::String program; |
48 |
static bool debug; |
49 |
}; |
50 |
|
51 |
#endif // _Smersh_hpp_ |