1 |
// Feeping Creaturism |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _FeepingCreaturism_hpp_ |
8 |
#define _FeepingCreaturism_hpp_ |
9 |
|
10 |
#include <menes/platform.hpp> |
11 |
|
12 |
#include <iostream> |
13 |
#include <string> |
14 |
#include <sstream> |
15 |
#include <vector> |
16 |
#include <set> |
17 |
#include <map> |
18 |
#include <algorithm> |
19 |
#include <cstdlib> |
20 |
#include <ctime> |
21 |
#include <cctype> |
22 |
|
23 |
#include <menes-api/console.hpp> |
24 |
#include <menes-ext/string.hpp> |
25 |
|
26 |
#ifdef MENES_STL_CONVERTABLE |
27 |
#undef MENES_STL_CONVERTABLE |
28 |
#endif |
29 |
|
30 |
#include <menes-xml/document.hpp> |
31 |
#include <menes-xml/nodeset.hpp> |
32 |
#include <menes-xml/parse.hpp> |
33 |
#include <menes-xml/textwriter.hpp> |
34 |
|
35 |
class FeepingCreaturism |
36 |
{ |
37 |
private: |
38 |
typedef std::pair<std::string, std::string> _P; |
39 |
typedef std::multimap<std::string, std::string> _M; |
40 |
struct CaseLess |
41 |
{ |
42 |
bool operator()(const std::string& one, const std::string& two); |
43 |
}; |
44 |
ext::String path, matcher; |
45 |
std::set<std::string, CaseLess> jargon; |
46 |
std::multimap<std::string, std::string> cgi; |
47 |
void initialize(); |
48 |
void parse(); |
49 |
void daily(); |
50 |
void random(); |
51 |
void select(const ext::String& selection, bool validate = false); |
52 |
public: |
53 |
FeepingCreaturism(); |
54 |
~FeepingCreaturism() {} |
55 |
static ext::String program; |
56 |
}; |
57 |
|
58 |
#endif // _FeepingCreaturism_hpp_ |