1 |
Douglas Thrift |
191 |
// Feeping Creaturism |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#ifndef _FeepingCreaturism_hpp_ |
8 |
|
|
#define _FeepingCreaturism_hpp_ |
9 |
|
|
|
10 |
Douglas Thrift |
198 |
#include <menes/platform.hpp> |
11 |
|
|
|
12 |
Douglas Thrift |
191 |
#include <iostream> |
13 |
|
|
#include <string> |
14 |
|
|
#include <sstream> |
15 |
|
|
#include <vector> |
16 |
Douglas Thrift |
194 |
#include <set> |
17 |
Douglas Thrift |
191 |
#include <cstdlib> |
18 |
|
|
#include <ctime> |
19 |
|
|
|
20 |
|
|
using std::cin; |
21 |
|
|
using std::cout; |
22 |
|
|
using std::cerr; |
23 |
|
|
|
24 |
|
|
#include <menes-xml/document.hpp> |
25 |
|
|
#include <menes-xml/nodeset.hpp> |
26 |
|
|
#include <menes-xml/parse.hpp> |
27 |
|
|
|
28 |
|
|
class FeepingCreaturism |
29 |
|
|
{ |
30 |
|
|
private: |
31 |
Douglas Thrift |
194 |
std::string path, matcher; |
32 |
|
|
std::set<std::string> jargon; |
33 |
|
|
void initialize(); |
34 |
|
|
void daily(); |
35 |
|
|
void random(); |
36 |
|
|
void select(const std::string& selection, bool validate = false); |
37 |
Douglas Thrift |
191 |
public: |
38 |
Douglas Thrift |
194 |
FeepingCreaturism(); |
39 |
Douglas Thrift |
191 |
~FeepingCreaturism() {} |
40 |
Douglas Thrift |
201 |
static std::string program; |
41 |
Douglas Thrift |
191 |
}; |
42 |
|
|
|
43 |
|
|
#endif // _FeepingCreaturism_hpp_ |