19 |
|
#include <menes-xml/textwriter.hpp> |
20 |
|
|
21 |
|
#include <map> |
22 |
< |
|
23 |
< |
struct Environment |
24 |
< |
{ |
25 |
< |
ext::String get(const ext::String& name) { try { return api::TheEnvironment.Get(name); } catch (ext::Exception) { return ext::String(); } } |
26 |
< |
}; |
27 |
< |
|
28 |
< |
extern Environment env; |
22 |
> |
#include <set> |
23 |
|
|
24 |
|
class Represent |
25 |
|
{ |
26 |
|
private: |
27 |
+ |
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 |
|
std::multimap<std::string, std::string> cgi; |
34 |
|
void parse(); |
35 |
|
void headings(xml::TextWriter& xhtml); |
36 |
|
void form(xml::TextWriter& xhtml); |
37 |
+ |
void output(xml::TextWriter& xhtml); |
38 |
+ |
template <typename Type> void output(xml::TextWriter& xhtml, const Item& item); |
39 |
|
public: |
40 |
|
Represent(); |
41 |
|
}; |