ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Represent/Represent.hpp
(Generate patch)

Comparing Represent/Represent.hpp (file contents):
Revision 373 by douglas, 2004-12-22T17:27:28-08:00 vs.
Revision 393 by douglas, 2004-12-24T22:32:04-08:00

# Line 14 | Line 14
14   #endif
15  
16   #include <menes-api/console.hpp>
17 + #include <menes-api/environment.hpp>
18   #include <menes-ios/string.hpp>
19 + #include <menes-xml/textwriter.hpp>
20 +
21 + #include <map>
22 + #include <set>
23  
24   #define _sforeach(type, item, set) \
25          for (bool _stop(true); _stop; ) \
26                  for (const type& _set = set; _stop; _stop = false) \
27                          _for (type::const_iterator, item, _set.begin(), _set.end())
28  
29 + struct Item;
30 +
31   class Represent
32   {
33   private:
34 +        std::multimap<std::string, std::string> cgi;
35 +        void parse();
36 +        std::string decode(const ext::String& encoded);
37 +        void headings(xml::TextWriter& xhtml);
38 +        void form(xml::TextWriter& xhtml);
39 +        void output(xml::TextWriter& xhtml);
40 +        template <typename Type> void output(xml::TextWriter& xhtml, const Item& item, size_t index);
41 +        template <typename Type> Type input(const Item& item);
42 +        template <typename Type> void normal(xml::TextWriter& xhtml, const Type& type);
43 +        template <typename Type> void binary(xml::TextWriter& xhtml, const Type& type);
44 +        template <typename Type> void hexadecimal(xml::TextWriter& xhtml, const Type& type);
45   public:
46          Represent();
47   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines