9 |
|
|
10 |
|
#include <menes/platform.hpp> |
11 |
|
|
12 |
+ |
#ifndef MENES_PRAGMA_ONCE |
13 |
+ |
#pragma once |
14 |
+ |
#endif |
15 |
+ |
|
16 |
|
#include <iostream> |
13 |
– |
#include <string> |
17 |
|
#include <sstream> |
18 |
|
#include <fstream> |
19 |
< |
#include <vector> |
19 |
> |
//#include <vector> |
20 |
|
#include <map> |
21 |
|
#include <algorithm> |
22 |
|
#include <cstdlib> |
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 |
|
|
29 |
– |
using namespace std; |
30 |
– |
|
31 |
– |
extern string program; |
32 |
– |
extern bool debug; |
33 |
– |
|
33 |
|
#include "Environment.hpp" |
34 |
|
|
35 |
|
class Person; |
38 |
|
{ |
39 |
|
private: |
40 |
|
static Environment env; |
41 |
< |
multimap<string, string> cgi; |
42 |
< |
void parse(istream& sin, const Environment& env); |
43 |
< |
void smersh(ostream& sout, const Environment& env); |
44 |
< |
void output(ostream& sout, const vector<Person>& people); |
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(istream& sin = cin, ostream& sout = cout, const Environment& env = |
47 |
< |
env); |
48 |
< |
~Smersh() {} |
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_ |