OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
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
12namespace Xapian {
13 class Database;
14}
15
16namespace OPENTREP {
17
19 class ResultHolder;
20 class Result;
21
23 class FacResultHolder : public FacBomAbstract {
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 ();
55 FacResultHolder (const FacResultHolder&);
56
57 private:
59 static FacResultHolder* _instance;
60
61 };
62}
63#endif // __OPENTREP_FAC_FACRESULTHOLDER_HPP
static void initLinkWithResult(ResultHolder &, Result &)
static FacResultHolder & instance()
ResultHolder & create(const TravelQuery_T &iQueryString, const Xapian::Database &iDatabase)
Class wrapping functions on a list of Result objects.
Class wrapping a set of Xapian documents having matched a given query string.
Definition Result.hpp:48
std::string TravelQuery_T