X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fhtml_parser.hpp;h=b06403d617ed81cdd0a8d26e31a7b366774ed16f;hb=ed1d79c860c13fb92e5b7eea8de2cd608a6caa0e;hp=f7546992a7064def5e51c2fe4588760abd582f55;hpb=3ef4df94516a136b7ee18ec8a45e740ef9e9dc05;p=metaproxy-moved-to-github.git diff --git a/src/html_parser.hpp b/src/html_parser.hpp index f754699..b06403d 100644 --- a/src/html_parser.hpp +++ b/src/html_parser.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2013 Index Data + Copyright (C) Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -29,9 +29,11 @@ namespace metaproxy_1 { int close_it) = 0; virtual void attribute(const char *tag, int tag_len, const char *attr, int attr_len, - const char *value, int val_len) = 0; + const char *value, int val_len, + const char *sep) = 0; virtual void closeTag(const char *tag, int tag_len) = 0; virtual void text(const char *value, int len) = 0; + virtual ~ HTMLParserEvent(); }; class HTMLParser { class Rep; @@ -39,6 +41,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; };