ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/FeepingCreaturism.hpp
Revision: 227
Committed: 2004-09-06T13:23:39-07:00 (20 years, 10 months ago) by Douglas Thrift
File size: 1209 byte(s)
Log Message:
This is a little cleaner.

File Contents

# User Rev Content
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 203 #include <map>
18 Douglas Thrift 206 #include <algorithm>
19 Douglas Thrift 191 #include <cstdlib>
20     #include <ctime>
21 Douglas Thrift 206 #include <cctype>
22 Douglas Thrift 191
23 Douglas Thrift 203 #include <menes-api/console.hpp>
24     #include <menes-ext/string.hpp>
25 Douglas Thrift 191
26 Douglas Thrift 203 #ifdef MENES_STL_CONVERTABLE
27     #undef MENES_STL_CONVERTABLE
28     #endif
29    
30 Douglas Thrift 191 #include <menes-xml/document.hpp>
31     #include <menes-xml/nodeset.hpp>
32     #include <menes-xml/parse.hpp>
33    
34     class FeepingCreaturism
35     {
36     private:
37 Douglas Thrift 206 typedef std::pair<std::string, std::string> _P;
38     typedef std::multimap<std::string, std::string> _M;
39     struct CaseLess
40     {
41     bool operator()(const std::string& one, const std::string& two);
42     };
43 Douglas Thrift 203 ext::String path, matcher;
44 Douglas Thrift 206 std::set<std::string, CaseLess> jargon;
45     std::multimap<std::string, std::string> cgi;
46 Douglas Thrift 194 void initialize();
47 Douglas Thrift 203 void parse();
48 Douglas Thrift 211 void daily(const ext::String& date);
49     void random(const ext::String& number);
50 Douglas Thrift 203 void select(const ext::String& selection, bool validate = false);
51 Douglas Thrift 191 public:
52 Douglas Thrift 194 FeepingCreaturism();
53 Douglas Thrift 191 ~FeepingCreaturism() {}
54 Douglas Thrift 203 static ext::String program;
55 Douglas Thrift 191 };
56    
57     #endif // _FeepingCreaturism_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id