// Represent // // Douglas Thrift // // $Id$ #ifndef _Represent_hpp_ #define _Represent_hpp_ #include #ifdef MENES_PRAGMA_ONCE #pragma once #endif #include #include #include #include #include #include #define _sforeach(type, item, set) \ for (bool _stop(true); _stop; ) \ for (const type& _set = set; _stop; _stop = false) \ _for (type::const_iterator, item, _set.begin(), _set.end()) struct Item; class Represent { private: std::multimap cgi; void parse(); std::string decode(const ext::String& encoded); void headings(xml::TextWriter& xhtml); void form(xml::TextWriter& xhtml); void output(xml::TextWriter& xhtml); template void output(xml::TextWriter& xhtml, const Item& item, size_t index); template Type input(const Item& item); template void normal(xml::TextWriter& xhtml, const Type& type); template void binary(xml::TextWriter& xhtml, const Type& type); template void hexadecimal(xml::TextWriter& xhtml, const Type& type); public: Represent(); }; #endif // _Represent_hpp_