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 |
#include <menes-api/console.hpp> |
12 |
#include <menes-api/process.hpp> |
13 |
#include <menes-ext/string.hpp> |
14 |
#include <menes-ios/helpers.hpp> |
15 |
#include <menes-ios/string.hpp> |
16 |
#include <menes-xml/document.hpp> |
17 |
#include <menes-xml/nodeset.hpp> |
18 |
#include <menes-xml/parse.hpp> |
19 |
|
20 |
#include <sstream> |
21 |
#include <set> |
22 |
#include <map> |
23 |
#include <algorithm> |
24 |
#include <cstdlib> |
25 |
#include <cstdio> |
26 |
#include <ctime> |
27 |
#include <cctype> |
28 |
|
29 |
class FeepingCreaturism |
30 |
{ |
31 |
private: |
32 |
struct CaseLess |
33 |
{ |
34 |
bool operator()(const std::string& one, const std::string& two); |
35 |
}; |
36 |
ext::String path, matcher; |
37 |
std::set<std::string, CaseLess> jargon; |
38 |
std::multimap<std::string, std::string> cgi; |
39 |
void initialize(); |
40 |
void parse(); |
41 |
void daily(const ext::String& date); |
42 |
void random(const ext::String& number); |
43 |
void select(const ext::String& selection, bool validate = false); |
44 |
public: |
45 |
FeepingCreaturism(); |
46 |
~FeepingCreaturism() {} |
47 |
static ext::String program; |
48 |
}; |
49 |
|
50 |
#endif // _FeepingCreaturism_hpp_ |