From: Myun2 Date: Tue, 21 Sep 2010 14:44:55 +0000 (+0900) Subject: roast_xml関連でのcommit漏れがあったようで・・・ X-Git-Tag: 20111130_shapeup_prev~192 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=40eec065c3060e9adf72164a3b7d55ce4f5db57d;p=roast%2Froast.git roast_xml関連でのcommit漏れがあったようで・・・ --- diff --git a/roast/include/roast/lexical/generator_base.hpp b/roast/include/roast/lexical/generator_base.hpp index aacb5b48..586be0e5 100644 --- a/roast/include/roast/lexical/generator_base.hpp +++ b/roast/include/roast/lexical/generator_base.hpp @@ -10,15 +10,16 @@ namespace roast { ////////////////////////////////////////////////////////// - template + template class generator_base { public: template - bool generate(const _Document& doc, _Strm &strm) + //bool generate(const _Document& doc, _Strm &strm) + bool generate(_Strm &strm, _DocItr docitr) { _Rule rule; - return rule.generate(strm, doc); + return rule.generate(strm, docitr); } }; @@ -26,4 +27,4 @@ namespace roast } } -#endif//__SFJP_ROAST__lexical__generator_base_HPP__ \ No newline at end of file +#endif//__SFJP_ROAST__lexical__generator_base_HPP__ diff --git a/roast/include/roast/xml/roast_xml/rule_xml.hpp b/roast/include/roast/xml/roast_xml/rule_xml.hpp index 23f883ee..58b5592e 100644 --- a/roast/include/roast/xml/roast_xml/rule_xml.hpp +++ b/roast/include/roast/xml/roast_xml/rule_xml.hpp @@ -208,6 +208,12 @@ namespace roast element e; return e.analyze(it,param); } + template + bool generate(_Strm& strm, _Document& doc) + { + element e; + return e.generate(strm,doc); + } }; ////////////////////////////////////////////////////////////////////////////////////