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

Comparing Represent/Represent.hpp (file contents):
Revision 385 by douglas, 2004-12-23T21:01:12-08:00 vs.
Revision 387 by douglas, 2004-12-24T03:17:21-08:00

# Line 21 | Line 21
21   #include <map>
22   #include <set>
23  
24 + #define _sforeach(type, item, set) \
25 +        for (bool _stop(true); _stop; ) \
26 +                for (const type& _set = set; _stop; _stop = false) \
27 +                        _for (type::const_iterator, item, _set.begin(), _set.end())
28 +
29   class Represent
30   {
31   private:
27        enum Input { INPUT_Normal, INPUT_Binary, INPUT_Hexadecimal };
32          struct Environment
33          {
34                  ext::String get(const ext::String& name) { try { return api::TheEnvironment.Get(name); } catch (ext::Exception) { return ext::String(); } }
# Line 35 | Line 39 | private:
39          void headings(xml::TextWriter& xhtml);
40          void form(xml::TextWriter& xhtml);
41          void output(xml::TextWriter& xhtml);
42 <        template <typename Type> void output(xml::TextWriter& xhtml, const Item& item);
42 >        template <typename Type> void output(xml::TextWriter& xhtml, const Item& item, size_t index);
43 >        template <typename Type> Type input(const Item& item);
44 >        template <typename Type> void normal(xml::TextWriter& xhtml, const Type& type);
45 >        template <typename Type> void binary(xml::TextWriter& xhtml, const Type& type);
46 >        template <typename Type> void hexadecimal(xml::TextWriter& xhtml, const Type& type);
47   public:
48          Represent();
49   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines