ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/FeepingCreaturism.hpp
Revision: 206
Committed: 2004-09-01T03:36:00-07:00 (20 years, 10 months ago) by Douglas Thrift
File size: 1197 byte(s)
Log Message:
Removed menes evil sort, replaced with CaseLess std sort.

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 Douglas Thrift 203 #include <menes-xml/textwriter.hpp>
34 Douglas Thrift 191
35     class FeepingCreaturism
36     {
37     private:
38 Douglas Thrift 206 typedef std::pair<std::string, std::string> _P;
39     typedef std::multimap<std::string, std::string> _M;
40     struct CaseLess
41     {
42     bool operator()(const std::string& one, const std::string& two);
43     };
44 Douglas Thrift 203 ext::String path, matcher;
45 Douglas Thrift 206 std::set<std::string, CaseLess> jargon;
46     std::multimap<std::string, std::string> cgi;
47 Douglas Thrift 194 void initialize();
48 Douglas Thrift 203 void parse();
49 Douglas Thrift 194 void daily();
50     void random();
51 Douglas Thrift 203 void select(const ext::String& selection, bool validate = false);
52 Douglas Thrift 191 public:
53 Douglas Thrift 194 FeepingCreaturism();
54 Douglas Thrift 191 ~FeepingCreaturism() {}
55 Douglas Thrift 203 static ext::String program;
56 Douglas Thrift 191 };
57    
58     #endif // _FeepingCreaturism_hpp_

Properties

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