OSDN Git Service

html_tags.hpp: 101118_nitro\6_aタグまで対応
authorMyun2 <myun2@nwhite.info>
Sun, 5 Dec 2010 08:57:13 +0000 (17:57 +0900)
committerMyun2 <myun2@nwhite.info>
Sun, 5 Dec 2010 08:57:13 +0000 (17:57 +0900)
roast/include/roast/web/html_tags.hpp

index 9dd2ad9..6f19cfe 100644 (file)
@@ -6,6 +6,7 @@
 #define __SFJP_ROAST__net__web__html_tags_HPP__
 
 #include "roast/lexical/string_rule.hpp"
+#include "roast/xml/roast_xml/rule_xml.hpp"
 
 #include <string>
 #include <map>
@@ -36,6 +37,23 @@ namespace roast
 
                        //////////////////////////////
 
+                       template <typename _Attrs=no_attrs, typename _Inners=no_inner>
+                       struct a_ : public _base<_Attrs, _Inners>
+                       {
+                               struct attr
+                               {
+                               private:
+                                       struct str
+                                       {
+                                               ROAST_LEXICAL_FIXSTR(href,"href");
+                                       };
+                               public:
+                                       template <typename T> struct href : _str_attr<typename str::href, T> {};
+                               };
+                       };
+                       typedef a_<> a;
+
+
                        template <typename _Attrs=no_attrs/*, typename _Inners*/>
                        struct img_ : public _base<_Attrs>
                        {