Support conversion of linkshere
[dueringa_WikiWalker.git] / inc / WikiWalker.h
bloba3c4bde069170b522c94a75b4b02ddf5757338c4
1 //! \file WikiWalker.h
3 #ifndef WIKIWALKER_WIKIWALKER_H
4 #define WIKIWALKER_WIKIWALKER_H
6 #include <string>
8 #include "Walker.h"
10 namespace WikiWalker
12 //! main "app" class
13 class WikiWalker : public Walker
15 public:
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
24 void deep(bool depth)
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;
46 private:
47 bool fetchGenerator_{false};
48 bool skipSslVerification_{false};
50 } // namespace WikiWalker
51 #endif // WIKIWALKER_WIKIWALKER_H