mirror of https://github.com/kiwix/libkiwix.git
+ new function def. for the indexer
This commit is contained in:
parent
e6299aaeab
commit
81424fedf3
|
@ -47,7 +47,7 @@ namespace kiwix {
|
|||
//this->readStopWordsFile("/home/kelson/kiwix/moulinkiwix/stopwords/fr");
|
||||
}
|
||||
|
||||
bool Indexer::setZimFilePath(const string &zimfilePath) {
|
||||
bool Indexer::setZimFilePath(const string &zimFilePath) {
|
||||
/* Open the ZIM file */
|
||||
this->zimFileHandler = new zim::File(zimFilePath);
|
||||
|
||||
|
@ -62,12 +62,15 @@ namespace kiwix {
|
|||
}
|
||||
|
||||
bool Indexer::start() {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Indexer::stop() {
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned Indexer::isRunning() {
|
||||
bool Indexer::isRunning() {
|
||||
return true;
|
||||
}
|
||||
|
||||
void Indexer::setCurrentArticleOffset(unsigned int offset) {
|
||||
|
|
|
@ -56,6 +56,15 @@ namespace kiwix {
|
|||
virtual void indexNextPercentPost() = 0;
|
||||
virtual void stopIndexing() = 0;
|
||||
|
||||
/* General */
|
||||
bool setZimFilePath(const string &zimFilePath);
|
||||
bool start();
|
||||
bool stop();
|
||||
bool isRunning();
|
||||
void setCurrentArticleOffset(unsigned int offset);
|
||||
unsigned int getCurrentArticleOffset();
|
||||
unsigned int getProgression();
|
||||
|
||||
/* ZIM file handling */
|
||||
zim::File* zimFileHandler;
|
||||
zim::size_type firstArticleOffset;
|
||||
|
|
Loading…
Reference in New Issue