libept
|
#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().
bool ept::debtags::DebtagsIndexer::deleteRedundantUserIndex | ( | ) |
bool ept::debtags::DebtagsIndexer::getUpToDateTagdb | ( | std::string & | tagfname, |
std::string & | idxfname | ||
) |
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().
|
static |
References deleteRedundantUserIndex(), getUpToDateTagdb(), and rebuildIfNeeded().
Referenced by ept::debtags::Debtags::Debtags().
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().
void ept::debtags::DebtagsIndexer::rescan | ( | ) |
References mainSource, ept::debtags::Path::tagdb(), ept::debtags::Path::tagdbIndex(), ept::debtags::SourceDir::timestamp(), ept::debtags::Path::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().
|
inline |
References ts_main_src, and ts_user_src.
Referenced by getUpToDateTagdb(), needsRebuild(), and userIndexIsRedundant().
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().
time_t ept::debtags::DebtagsIndexer::ts_main_idx |
Referenced by getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().
time_t ept::debtags::DebtagsIndexer::ts_main_src |
Referenced by rescan(), and sourceTimestamp().
time_t ept::debtags::DebtagsIndexer::ts_main_tag |
Referenced by getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().
time_t ept::debtags::DebtagsIndexer::ts_user_idx |
Referenced by deleteRedundantUserIndex(), getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().
time_t ept::debtags::DebtagsIndexer::ts_user_src |
Referenced by getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), sourceTimestamp(), and userIndexIsRedundant().
time_t ept::debtags::DebtagsIndexer::ts_user_tag |
Referenced by deleteRedundantUserIndex(), getUpToDateTagdb(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().
Vocabulary& ept::debtags::DebtagsIndexer::voc |
Referenced by rebuild().