1 |
// Feeping Creaturism |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _FeepingCreaturism_hpp_ |
8 |
#define _FeepingCreaturism_hpp_ |
9 |
|
10 |
#include <cxx/platform.hpp> |
11 |
|
12 |
#ifdef MENES_PRAGMA_ONCE |
13 |
#pragma once |
14 |
#endif |
15 |
|
16 |
#include <cxx/platform.hpp> |
17 |
#include <api/console.hpp> |
18 |
#include <api/process.hpp> |
19 |
#include <ios/helpers.hpp> |
20 |
#include <ios/string.hpp> |
21 |
#include <xml/document.hpp> |
22 |
#include <xml/nodeset.hpp> |
23 |
#include <xml/parse.hpp> |
24 |
|
25 |
class FeepingCreaturism |
26 |
{ |
27 |
private: |
28 |
struct CaseLess |
29 |
{ |
30 |
static bool Execute(const cse::String &one, const cse::String &two); |
31 |
}; |
32 |
cse::String path, matcher; |
33 |
ext::RedBlackSet<cse::String, cse::String, ext::Identity, CaseLess> jargon; |
34 |
ext::RedBlackMap<cse::String, _L<cse::String> > cgi; |
35 |
void Initialize(); |
36 |
void Parse(); |
37 |
void Daily(const cse::String &date); |
38 |
void Random(const cse::String &number); |
39 |
void Select(const cse::String &selection, bool validate = false); |
40 |
public: |
41 |
FeepingCreaturism(); |
42 |
~FeepingCreaturism() {} |
43 |
}; |
44 |
|
45 |
#endif // _FeepingCreaturism_hpp_ |