#ifndef IPARSER_H #define IPARSER_H #include #include #include "headline.h" #include "database/pagedao.h" #include "urlprovider.h" class IParser { public: virtual std::vector extractHeadlines(std::string content) const = 0; virtual std::string parse(const PageDao &pagedao, UrlProvider &provider, std::string content) const = 0; virtual std::vector extractCategories(std::string content) const = 0; virtual ~IParser() { }; }; #endif // PARSER_H