+ new function def. for the indexer

This commit is contained in:
kelson42 2012-03-15 19:18:48 +00:00
parent e6299aaeab
commit 81424fedf3
2 changed files with 14 additions and 2 deletions

View File

@ -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) {

View File

@ -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;