Switch to unified view

a/src/rcldb/stemdb.h b/src/rcldb/stemdb.h
1
#ifndef _STEMDB_H_INCLUDED_
1
#ifndef _STEMDB_H_INCLUDED_
2
#define _STEMDB_H_INCLUDED_
2
#define _STEMDB_H_INCLUDED_
3
/* @(#$Id: stemdb.h,v 1.1 2006-04-13 09:50:03 dockes Exp $  (C) 2004 J.F.Dockes */
3
/* @(#$Id: stemdb.h,v 1.2 2006-11-15 14:57:53 dockes Exp $  (C) 2004 J.F.Dockes */
4
#ifdef RCLDB_INTERNAL
5
/// Stem database code
4
/// Stem database code
6
/// 
5
/// 
7
/// Stem databases list stems and the set of index terms they expand to. They 
6
/// Stem databases list stems and the set of index terms they expand to. They 
8
/// are computed from index data by stemming each term and regrouping those 
7
/// are computed from index data by stemming each term and regrouping those 
9
/// that stem to the same value.
8
/// that stem to the same value.
...
...
12
11
13
#include <list>
12
#include <list>
14
#include <string>
13
#include <string>
15
14
16
#include <xapian.h>
15
#include <xapian.h>
17
16
#ifndef NO_NAMESPACES
17
using std::string;
18
using std::list;
18
namespace Rcl {
19
namespace Rcl {
19
namespace StemDb {
20
namespace StemDb {
21
#endif // NO_NAMESPACES
20
22
21
/// Get languages of existing stem databases
23
/// Get languages of existing stem databases
22
extern std::list<std::string> getLangs(const std::string& dbdir);
24
extern std::list<std::string> getLangs(const std::string& dbdir);
23
/// Delete stem database for given language
25
/// Delete stem database for given language
24
extern bool deleteDb(const std::string& dbdir, const std::string& lang);
26
extern bool deleteDb(const std::string& dbdir, const std::string& lang);
...
...
28
/// Expand term to stem siblings
30
/// Expand term to stem siblings
29
extern std::list<std::string> stemExpand(const std::string& dbdir, 
31
extern std::list<std::string> stemExpand(const std::string& dbdir, 
30
                     const std::string& lang,
32
                     const std::string& lang,
31
                     const std::string& term);
33
                     const std::string& term);
32
34
35
#ifndef NO_NAMESPACES
33
}
36
}
34
}
37
}
38
#endif // NO_NAMESPACES
35
39
36
#endif // RCLDB_INTERNAL
37
#endif /* _STEMDB_H_INCLUDED_ */
40
#endif /* _STEMDB_H_INCLUDED_ */