3 #ifndef WIKIWALKER_WIKIWALKER_H
4 #define WIKIWALKER_WIKIWALKER_H
13 class WikiWalker
: public Walker
16 /*! given an URL, start collecting links
17 * \param url start point for analysis
19 void start(const std::string
& url
);
21 /*! fetch not only requested article, but also linked ones.
22 * \param depth whether to fetch linked articles as well
26 fetchGenerator_
= depth
;
29 /*! Read data from cache file.
30 * Used for initialization.
31 * \param cacheFile file name of the cache.
33 void readCache(const std::string
& cacheFile
);
35 /*! Write data to cache file.
36 * \param cacheFile file name of the cache.
38 void writeCache(const std::string
& cacheFile
);
40 //! \see CurlWikiGrabber::skipSslVerification
41 void skipSslVerification(bool state
)
43 skipSslVerification_
= state
;
47 bool fetchGenerator_
{false};
48 bool skipSslVerification_
{false};
50 } // namespace WikiWalker
51 #endif // WIKIWALKER_WIKIWALKER_H