// Represent // // Douglas Thrift // // $Id$ #ifndef _Represent_hpp_ #define _Represent_hpp_ #include #ifdef MENES_PRAGMA_ONCE #pragma once #endif #include #include #include #include #include #include class Represent { private: enum Input { INPUT_Normal, INPUT_Binary, INPUT_Hexadecimal }; struct Environment { ext::String get(const ext::String& name) { try { return api::TheEnvironment.Get(name); } catch (ext::Exception) { return ext::String(); } } } env; struct Item; std::multimap cgi; void parse(); void headings(xml::TextWriter& xhtml); void form(xml::TextWriter& xhtml); void output(xml::TextWriter& xhtml); template void output(xml::TextWriter& xhtml, const Item& item); public: Represent(); }; #endif // _Represent_hpp_