New Reader::getZimFilePath()

This commit is contained in:
Kelson 2016-10-14 13:11:14 +02:00
parent e21c1b2c75
commit 01794e6e91
2 changed files with 8 additions and 1 deletions

View File

@ -72,6 +72,7 @@ namespace kiwix {
this->currentArticleOffset = this->firstArticleOffset; this->currentArticleOffset = this->firstArticleOffset;
this->nsACount = this->zimFileHandler->getNamespaceCount('A'); this->nsACount = this->zimFileHandler->getNamespaceCount('A');
this->nsICount = this->zimFileHandler->getNamespaceCount('I'); this->nsICount = this->zimFileHandler->getNamespaceCount('I');
this->zimFilePath = zimFilePath;
} }
/* initialize random seed: */ /* initialize random seed: */
@ -252,6 +253,10 @@ namespace kiwix {
return content.empty() ? false : true; return content.empty() ? false : true;
} }
string Reader::getZimFilePath() {
return this->zimFilePath;
}
/* Return a metatag value */ /* Return a metatag value */
bool Reader::getMetatag(const string &name, string &value) { bool Reader::getMetatag(const string &name, string &value) {
unsigned int contentLength = 0; unsigned int contentLength = 0;

View File

@ -47,6 +47,7 @@ namespace kiwix {
unsigned int getArticleCount(); unsigned int getArticleCount();
unsigned int getMediaCount(); unsigned int getMediaCount();
unsigned int getGlobalCount(); unsigned int getGlobalCount();
string getZimFilePath();
string getId(); string getId();
string getRandomPageUrl(); string getRandomPageUrl();
string getFirstPageUrl(); string getFirstPageUrl();
@ -90,6 +91,7 @@ namespace kiwix {
zim::size_type currentArticleOffset; zim::size_type currentArticleOffset;
zim::size_type nsACount; zim::size_type nsACount;
zim::size_type nsICount; zim::size_type nsICount;
std::string zimFilePath;
std::vector< std::vector<std::string> > suggestions; std::vector< std::vector<std::string> > suggestions;
std::vector< std::vector<std::string> >::iterator suggestionsOffset; std::vector< std::vector<std::string> >::iterator suggestionsOffset;