From 68250b45b381d70615236e9160e683c2ba8bf53a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 27 Jun 2013 11:49:45 +0200 Subject: [PATCH] HTMLParser, verbose setting --- src/html_parser.cpp | 6 ++++++ src/html_parser.hpp | 1 + 2 files changed, 7 insertions(+) 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; }; -- 1.7.10.4