1 |
Douglas Thrift |
162 |
// Smersh |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#ifndef _Smersh_hpp_ |
8 |
|
|
#define _Smersh_hpp_ |
9 |
|
|
|
10 |
Douglas Thrift |
199 |
#include <menes/platform.hpp> |
11 |
|
|
|
12 |
douglas |
349 |
#ifndef MENES_PRAGMA_ONCE |
13 |
|
|
#pragma once |
14 |
|
|
#endif |
15 |
|
|
|
16 |
Douglas Thrift |
162 |
#include <iostream> |
17 |
|
|
#include <sstream> |
18 |
Douglas Thrift |
177 |
#include <fstream> |
19 |
douglas |
349 |
//#include <vector> |
20 |
Douglas Thrift |
162 |
#include <map> |
21 |
Douglas Thrift |
167 |
#include <algorithm> |
22 |
Douglas Thrift |
168 |
#include <cstdlib> |
23 |
Douglas Thrift |
166 |
#include <cctype> |
24 |
Douglas Thrift |
176 |
#include <ctime> |
25 |
Douglas Thrift |
162 |
|
26 |
Douglas Thrift |
185 |
#include <menes-api/console.hpp> |
27 |
Douglas Thrift |
168 |
#include <menes-ext/casts.hpp> |
28 |
douglas |
349 |
#include <menes-ext/foreach.hpp> |
29 |
Douglas Thrift |
170 |
#include <menes-xml/document.hpp> |
30 |
|
|
#include <menes-xml/nodeset.hpp> |
31 |
|
|
#include <menes-xml/parse.hpp> |
32 |
Douglas Thrift |
168 |
|
33 |
Douglas Thrift |
173 |
#include "Environment.hpp" |
34 |
|
|
|
35 |
Douglas Thrift |
166 |
class Person; |
36 |
|
|
|
37 |
Douglas Thrift |
162 |
class Smersh |
38 |
|
|
{ |
39 |
|
|
private: |
40 |
Douglas Thrift |
173 |
static Environment env; |
41 |
douglas |
349 |
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 |
Douglas Thrift |
162 |
public: |
46 |
douglas |
349 |
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 |
Douglas Thrift |
162 |
}; |
50 |
|
|
|
51 |
|
|
#endif // _Smersh_hpp_ |