Merge branch 'feature/getopt'
[dueringa_WikiWalker.git] / src / CacheJsonToArticleConverter.h
blobda0dd352a561b059b6ced5861677b583e72c5628
1 //! \file CacheJsonToArticleConverter.h
3 #ifndef _CACHEJSONTOARTICLECONVERTER_H
4 #define _CACHEJSONTOARTICLECONVERTER_H
6 #include "ArticleCollection.h"
8 /*! Read Article from JSON cache file.
9 * This class does the opposite to #ToJsonWriter.
11 class CacheJsonToArticleConverter
13 public:
14 /*! Convert JSON data from cache file into an article collection.
15 * \param json JSON data
16 * \param articleCache Article collection to add articles to. Will
17 * also look up existing articles there.
18 * \returns reference to passed article collection.
20 ArticleCollection& convertToArticle(std::string json,
21 ArticleCollection& articleCache);
24 #endif // _CACHEJSONTOARTICLECONVERTER_H