1
0
qswiki/parser.h

21 Zeilen
642 B
C

2018-11-03 17:12:20 +01:00
#ifndef PARSER_H
#define PARSER_H
#include <boost/regex.hpp>
2018-11-03 17:12:20 +01:00
#include "iparser.h"
class Parser : public IParser
{
private:
std::string processLink(const PageDao &pageDao, UrlProvider &urlProvider, boost::smatch &match) const;
2018-11-03 17:12:20 +01:00
public:
std::string extractCommand(std::string cmdname, std::string content) const ;
2018-11-03 17:12:20 +01:00
std::vector<Headline> extractHeadlines(std::string content) const override ;
std::vector<std::string> extractCategories(std::string content) const override;
std::string parse(const PageDao &pagedao, UrlProvider &provider, std::string content) const override;
using IParser::IParser;
~Parser() { };
};
#endif // PARSER_H