From: Adam Dickmeiss Date: Thu, 27 Jun 2013 09:49:45 +0000 (+0200) Subject: HTMLParser, verbose setting X-Git-Tag: v1.3.59~42 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=68250b45b381d70615236e9160e683c2ba8bf53a;p=metaproxy-moved-to-github.git HTMLParser, verbose setting --- diff --git a/src/html_parser.cpp b/src/html_parser.cpp index 694df69..47b2e14 100644 --- a/src/html_parser.cpp +++ b/src/html_parser.cpp @@ -67,6 +67,12 @@ mp::HTMLParser::~HTMLParser() { } +void mp::HTMLParser::set_verbose(int v) +{ + m_p->m_verbose = v; +} + + void mp::HTMLParser::parse(mp::HTMLParserEvent & event, const char *str) const { m_p->parse_str(event, str); diff --git a/src/html_parser.hpp b/src/html_parser.hpp index f754699..8eeb152 100644 --- a/src/html_parser.hpp +++ b/src/html_parser.hpp @@ -39,6 +39,7 @@ namespace metaproxy_1 { HTMLParser(); ~HTMLParser(); void parse(HTMLParserEvent &event, const char *str) const; + void set_verbose(int v); private: boost::scoped_ptr m_p; };