OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FacResultHolder.hpp
Go to the documentation of this file.
1 #ifndef __OPENTREP_FAC_FACRESULTHOLDER_HPP
2 #define __OPENTREP_FAC_FACRESULTHOLDER_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // OpenTREP
10 
11 // Forward declarations
12 namespace Xapian {
13  class Database;
14 }
15 
16 namespace OPENTREP {
17 
19  class ResultHolder;
20  class Result;
21 
24  public:
25 
29  static FacResultHolder& instance();
30 
34  virtual ~FacResultHolder();
35 
39  ResultHolder& create (const TravelQuery_T& iQueryString,
40  const Xapian::Database& iDatabase);
41 
47  static void initLinkWithResult (ResultHolder&, Result&);
48 
49 
50  private:
54  FacResultHolder ();
56 
57  private:
59  static FacResultHolder* _instance;
60 
61  };
62 }
63 #endif // __OPENTREP_FAC_FACRESULTHOLDER_HPP
ResultHolder & create(const TravelQuery_T &iQueryString, const Xapian::Database &iDatabase)
static void initLinkWithResult(ResultHolder &, Result &)
Class wrapping functions on a list of Result objects.
static FacResultHolder & instance()
std::string TravelQuery_T
Class wrapping a set of Xapian documents having matched a given query string.
Definition: Result.hpp:48