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 <cstdlib> |
19 |
#include <ctime> |
20 |
|
21 |
#include <menes-api/console.hpp> |
22 |
#include <menes-ext/string.hpp> |
23 |
|
24 |
#ifdef MENES_STL_CONVERTABLE |
25 |
#undef MENES_STL_CONVERTABLE |
26 |
#endif |
27 |
|
28 |
#include <menes-xml/document.hpp> |
29 |
#include <menes-xml/nodeset.hpp> |
30 |
#include <menes-xml/parse.hpp> |
31 |
#include <menes-xml/textwriter.hpp> |
32 |
|
33 |
class FeepingCreaturism |
34 |
{ |
35 |
private: |
36 |
typedef std::pair<ext::String, ext::String> _P; |
37 |
typedef std::multimap<ext::String, ext::String> _M; |
38 |
ext::String path, matcher; |
39 |
std::set<ext::String> jargon; |
40 |
_M cgi; |
41 |
void initialize(); |
42 |
void parse(); |
43 |
void daily(); |
44 |
void random(); |
45 |
void select(const ext::String& selection, bool validate = false); |
46 |
public: |
47 |
FeepingCreaturism(); |
48 |
~FeepingCreaturism() {} |
49 |
static ext::String program; |
50 |
}; |
51 |
|
52 |
#endif // _FeepingCreaturism_hpp_ |