ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Represent/Represent.hpp
Revision: 385
Committed: 2004-12-23T21:01:12-08:00 (20 years, 5 months ago) by douglas
File size: 927 byte(s)
Log Message:
This going to be easier to finish in VC++.

File Contents

# User Rev Content
1 douglas 370 // Represent
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #ifndef _Represent_hpp_
8     #define _Represent_hpp_
9    
10     #include <menes/platform.hpp>
11    
12     #ifdef MENES_PRAGMA_ONCE
13     #pragma once
14     #endif
15    
16     #include <menes-api/console.hpp>
17 douglas 384 #include <menes-api/environment.hpp>
18 douglas 370 #include <menes-ios/string.hpp>
19 douglas 379 #include <menes-xml/textwriter.hpp>
20 douglas 370
21 douglas 379 #include <map>
22 douglas 385 #include <set>
23 douglas 373
24 douglas 370 class Represent
25     {
26     private:
27 douglas 385 enum Input { INPUT_Normal, INPUT_Binary, INPUT_Hexadecimal };
28     struct Environment
29     {
30     ext::String get(const ext::String& name) { try { return api::TheEnvironment.Get(name); } catch (ext::Exception) { return ext::String(); } }
31     } env;
32     struct Item;
33 douglas 379 std::multimap<std::string, std::string> cgi;
34     void parse();
35 douglas 380 void headings(xml::TextWriter& xhtml);
36     void form(xml::TextWriter& xhtml);
37 douglas 385 void output(xml::TextWriter& xhtml);
38     template <typename Type> void output(xml::TextWriter& xhtml, const Item& item);
39 douglas 370 public:
40     Represent();
41     };
42    
43     #endif // _Represent_hpp_

Properties

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