OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IndexBuilder.hpp
Go to the documentation of this file.
1 #ifndef __OPENTREP_CMD_INDEXBUILDER_HPP
2 #define __OPENTREP_CMD_INDEXBUILDER_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // OpenTrep
9 
10 // Forward declarations
11 namespace Xapian {
12  class WritableDatabase;
13 }
14 
15 namespace OPENTREP {
16 
17  // Forward declarations
18  class Place;
19  struct OTransliterator;
20 
24  class IndexBuilder {
25  friend class OPENTREP_Service;
26  private:
27 
35  static void addDocumentToIndex (Xapian::WritableDatabase&, Place&,
36  const OTransliterator&);
37 
45  static NbOfDBEntries_T buildSearchIndex (const PORFilePath_T&,
46  const TravelDBFilePath_T&,
47  const OTransliterator&);
48 
49  private:
53  IndexBuilder() {}
54 
58  IndexBuilder(const IndexBuilder&) {}
59 
63  ~IndexBuilder() {}
64  };
65 
66 }
67 #endif // __OPENTREP_CMD_INDEXBUILDER_HPP
unsigned int NbOfDBEntries_T
Interface for the OPENTREP Services.
Class modelling a place/POR (point of reference).
Definition: Place.hpp:28
Command wrapping the travel request process.