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 |
< |
#define _sforeach(type, item, set) \ |
22 |
< |
for (bool _stop(true); _stop; ) \ |
23 |
< |
for (const type& _set = set; _stop; _stop = false) \ |
24 |
< |
_for (type::const_iterator, item, _set.begin(), _set.end()) |
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; |
29 |
|
|
30 |
|
class Represent |
31 |
|
{ |
32 |
|
private: |
33 |
+ |
std::multimap<std::string, std::string> cgi; |
34 |
+ |
void parse(); |
35 |
+ |
void headings(xml::TextWriter& xhtml); |
36 |
+ |
void form(xml::TextWriter& xhtml); |
37 |
|
public: |
38 |
|
Represent(); |
39 |
|
}; |