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

Comparing Represent/Represent.cpp (file contents):
Revision 388 by douglas, 2004-12-24T03:31:12-08:00 vs.
Revision 389 by douglas, 2004-12-24T04:02:30-08:00

# Line 9 | Line 9
9   #include "InputType.hpp"
10  
11   #ifdef _WIN32
12 < #pragma warning(disable:4267)
12 > #pragma warning(disable:4267 4288)
13   #endif
14  
15   #include <menes-app/simple.hpp>
# Line 17 | Line 17
17   #include <menes-xml/nodeset.hpp>
18   #include <menes-xml/parse.hpp>
19  
20 + struct Environment
21 + {
22 +        ext::String get(const ext::String& name) { try { return api::TheEnvironment.Get(name); } catch (ext::Exception) { return ext::String(); } }
23 + } env;
24 +
25 + struct Item
26 + {
27 +        DataType type;
28 +        ext::String data;
29 +        InputType input;
30 +        Item(const DataType& type, const ext::String& data, const InputType& input_) : type(type), data(data), input(input_) {}
31 + };
32 +
33   int Main(const app::Options& options)
34   {
35          Represent represent;
# Line 49 | Line 62 | Represent::Represent()
62          api::Cout << after << ios::Flush;
63   }
64  
52 struct Represent::Item
53 {
54        DataType type;
55        ext::String data;
56        InputType input;
57        Item(const DataType& type, const ext::String& data, const InputType& input) : type(type), data(data), input(input) {}
58 };
59
65   void Represent::parse()
66   {
67          ext::String query(env.get("QUERY_STRING"));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines