#include <debtagsindexer.h>
Public Member Functions | |
time_t | sourceTimestamp () const |
bool | needsRebuild () const |
bool | rebuild (const std::string &tagfname, const std::string &idxfname) |
bool | rebuildIfNeeded () |
bool | getUpToDateTagdb (std::string &tagfname, std::string &idxfname) |
bool | userIndexIsRedundant () const |
bool | deleteRedundantUserIndex () |
void | rescan () |
DebtagsIndexer (Vocabulary &voc) | |
Static Public Member Functions | |
static bool | obtainWorkingDebtags (Vocabulary &voc, std::string &tagfname, std::string &idxfname) |
Public Attributes | |
Vocabulary & | voc |
SourceDir | mainSource |
SourceDir | userSource |
time_t | ts_main_src |
time_t | ts_user_src |
time_t | ts_main_tag |
time_t | ts_main_idx |
time_t | ts_user_tag |
time_t | ts_user_idx |
ept::debtags::DebtagsIndexer::DebtagsIndexer | ( | Vocabulary & | voc | ) |
References rescan().
time_t ept::debtags::DebtagsIndexer::sourceTimestamp | ( | ) | const [inline] |
References ts_main_src, and ts_user_src.
Referenced by getUpToDateTagdb(), needsRebuild(), and userIndexIsRedundant().
bool ept::debtags::DebtagsIndexer::needsRebuild | ( | ) | const |
References sourceTimestamp(), ts_main_idx, ts_main_tag, ts_user_idx, ts_user_src, and ts_user_tag.
Referenced by rebuildIfNeeded().
bool ept::debtags::DebtagsIndexer::rebuild | ( | const std::string & | tagfname, | |
const std::string & | idxfname | |||
) |
References mainSource, ept::debtags::SourceDir::readTags(), ept::debtags::stringToInt(), userSource, and voc.
Referenced by rebuildIfNeeded().
bool ept::debtags::DebtagsIndexer::rebuildIfNeeded | ( | ) |
References ept::debtags::Path::access(), ept::debtags::Path::debtagsIndexDir(), needsRebuild(), rebuild(), ept::debtags::Path::tagdb(), ept::debtags::Path::tagdbIndex(), ept::debtags::Path::timestamp(), ts_main_idx, ts_main_tag, ts_user_idx, ts_user_src, ts_user_tag, ept::debtags::Path::userTagdb(), and ept::debtags::Path::userTagdbIndex().
Referenced by obtainWorkingDebtags().
bool ept::debtags::DebtagsIndexer::getUpToDateTagdb | ( | std::string & | tagfname, | |
std::string & | idxfname | |||
) |
bool ept::debtags::DebtagsIndexer::userIndexIsRedundant | ( | ) | const |
References sourceTimestamp(), ts_main_idx, ts_main_tag, ts_user_idx, ts_user_src, and ts_user_tag.
Referenced by deleteRedundantUserIndex().
bool ept::debtags::DebtagsIndexer::deleteRedundantUserIndex | ( | ) |
void ept::debtags::DebtagsIndexer::rescan | ( | ) |
References mainSource, ept::debtags::Path::tagdb(), ept::debtags::Path::tagdbIndex(), ept::debtags::Path::timestamp(), ept::debtags::SourceDir::timestamp(), ts_main_idx, ts_main_src, ts_main_tag, ts_user_idx, ts_user_src, ts_user_tag, userSource, ept::debtags::Path::userTagdb(), and ept::debtags::Path::userTagdbIndex().
Referenced by DebtagsIndexer().
bool ept::debtags::DebtagsIndexer::obtainWorkingDebtags | ( | Vocabulary & | voc, | |
std::string & | tagfname, | |||
std::string & | idxfname | |||
) | [static] |
References deleteRedundantUserIndex(), getUpToDateTagdb(), and rebuildIfNeeded().
Referenced by ept::debtags::Debtags::Debtags().
Referenced by rebuild().
Referenced by rescan(), and sourceTimestamp().
Referenced by getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), sourceTimestamp(), and userIndexIsRedundant().
Referenced by getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().
Referenced by getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().
Referenced by deleteRedundantUserIndex(), getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().
Referenced by deleteRedundantUserIndex(), getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().