libept
0.5.25
Main Page
Namespaces
Classes
Files
File List
File Members
ept
debtags
maint
debtagsindexer.h
Go to the documentation of this file.
1
#ifndef EPT_DEBTAGS_DEBTAGSINDEXER_H
2
#define EPT_DEBTAGS_DEBTAGSINDEXER_H
3
4
#include <
ept/debtags/maint/sourcedir.h
>
5
#include <string>
6
7
namespace
ept {
8
namespace
debtags {
9
10
class
Vocabulary;
11
12
struct
DebtagsIndexer
13
{
14
Vocabulary
&
voc
;
15
16
SourceDir
mainSource
;
17
SourceDir
userSource
;
18
time_t
ts_main_src
;
19
time_t
ts_user_src
;
20
time_t
ts_main_tag
;
21
time_t
ts_main_idx
;
22
time_t
ts_user_tag
;
23
time_t
ts_user_idx
;
24
25
time_t
sourceTimestamp
()
const
26
{
27
time_t res =
ts_main_src
;
28
if
(
ts_user_src
> res) res =
ts_user_src
;
29
return
res;
30
}
31
bool
needsRebuild
()
const
;
32
bool
rebuild
(
const
std::string& tagfname,
const
std::string& idxfname);
33
bool
rebuildIfNeeded
();
34
bool
getUpToDateTagdb
(std::string& tagfname, std::string& idxfname);
35
36
bool
userIndexIsRedundant
()
const
;
37
bool
deleteRedundantUserIndex
();
38
39
void
rescan
();
40
41
DebtagsIndexer
(
Vocabulary
&
voc
);
42
43
static
bool
obtainWorkingDebtags
(
Vocabulary
&
voc
, std::string& tagfname, std::string& idxfname);
44
};
45
46
47
}
48
}
49
50
// vim:set ts=4 sw=4:
51
#endif
ept::debtags::DebtagsIndexer::userSource
SourceDir userSource
Definition:
debtagsindexer.h:17
sourcedir.h
ept::debtags::DebtagsIndexer::ts_user_src
time_t ts_user_src
Definition:
debtagsindexer.h:19
ept::debtags::DebtagsIndexer::sourceTimestamp
time_t sourceTimestamp() const
Definition:
debtagsindexer.h:25
ept::debtags::DebtagsIndexer::rebuildIfNeeded
bool rebuildIfNeeded()
Definition:
debtagsindexer.cc:168
ept::debtags::DebtagsIndexer::voc
Vocabulary & voc
Definition:
debtagsindexer.h:14
ept::debtags::DebtagsIndexer::obtainWorkingDebtags
static bool obtainWorkingDebtags(Vocabulary &voc, std::string &tagfname, std::string &idxfname)
Definition:
debtagsindexer.cc:253
ept::debtags::DebtagsIndexer::deleteRedundantUserIndex
bool deleteRedundantUserIndex()
Definition:
debtagsindexer.cc:199
ept::debtags::DebtagsIndexer::needsRebuild
bool needsRebuild() const
Definition:
debtagsindexer.cc:71
ept::debtags::DebtagsIndexer::rescan
void rescan()
Definition:
debtagsindexer.cc:61
ept::debtags::DebtagsIndexer::userIndexIsRedundant
bool userIndexIsRedundant() const
Definition:
debtagsindexer.cc:95
ept::debtags::DebtagsIndexer::DebtagsIndexer
DebtagsIndexer(Vocabulary &voc)
Definition:
debtagsindexer.cc:53
ept::debtags::DebtagsIndexer::getUpToDateTagdb
bool getUpToDateTagdb(std::string &tagfname, std::string &idxfname)
Definition:
debtagsindexer.cc:219
ept::debtags::DebtagsIndexer::ts_main_src
time_t ts_main_src
Definition:
debtagsindexer.h:18
ept::debtags::DebtagsIndexer
Definition:
debtagsindexer.h:12
ept::debtags::DebtagsIndexer::ts_user_tag
time_t ts_user_tag
Definition:
debtagsindexer.h:22
ept::debtags::DebtagsIndexer::mainSource
SourceDir mainSource
Definition:
debtagsindexer.h:16
ept::debtags::SourceDir
Access a directory containing Debtags data files.
Definition:
debtags/maint/sourcedir.h:38
ept::debtags::Vocabulary
Definition:
vocabulary.h:37
ept::debtags::DebtagsIndexer::ts_main_tag
time_t ts_main_tag
Definition:
debtagsindexer.h:20
ept::debtags::DebtagsIndexer::ts_main_idx
time_t ts_main_idx
Definition:
debtagsindexer.h:21
ept::debtags::DebtagsIndexer::ts_user_idx
time_t ts_user_idx
Definition:
debtagsindexer.h:23
ept::debtags::DebtagsIndexer::rebuild
bool rebuild(const std::string &tagfname, const std::string &idxfname)
Definition:
debtagsindexer.cc:113
Generated on Tue Apr 7 2020 14:40:28 for libept by
1.8.6