libept
0.5.25
Main Page
Namespaces
Classes
Files
File List
File Members
ept
textsearch
extraindexers.h
Go to the documentation of this file.
1
#ifndef EPT_TEXTSEARCH_EXTRAINDEXERS_H
2
#define EPT_TEXTSEARCH_EXTRAINDEXERS_H
3
9
/*
10
* Copyright (C) 2007 Enrico Zini <enrico@debian.org>
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 2 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
*/
26
27
#include <
ept/textsearch/textsearch.h
>
28
29
namespace
ept {
30
namespace
debtags {
31
class
Debtags;
32
}
33
namespace
textsearch {
34
35
struct
AptTagsExtraIndexer
:
public
TextSearch::ExtraIndexer
36
{
37
virtual
void
operator()
(Xapian::Document& doc,
const
apt::PackageRecord
& rec)
const
;
38
};
39
40
struct
DebtagsExtraIndexer
:
public
TextSearch::ExtraIndexer
41
{
42
const
debtags::Debtags
&
debtags
;
43
DebtagsExtraIndexer
(
const
debtags::Debtags
&
debtags
) : debtags(debtags) {}
44
virtual
void
operator()
(Xapian::Document& doc,
const
apt::PackageRecord
& rec)
const
;
45
};
46
47
}
48
}
49
50
// vim:set ts=4 sw=4:
51
#endif
Generated on Tue Apr 7 2020 14:38:06 for libept by
1.8.1.2