OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FacResult.hpp
Go to the documentation of this file.
1 #ifndef __OPENTREP_FAC_FACRESULT_HPP
2 #define __OPENTREP_FAC_FACRESULT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // OpenTrep
9 
10 namespace OPENTREP {
11 
12  // Forward declarations.
13  class Result;
14 
18  class FacResult : public FacBomAbstract {
19  public:
20 
28  static FacResult& instance();
29 
36  virtual ~FacResult();
37 
45  Result& create (const TravelQuery_T&, const Xapian::Database&);
46 
47 
48  private:
55  FacResult ();
56  FacResult (const FacResult&);
57 
58  private:
62  static FacResult* _instance;
63  };
64 }
65 #endif // __OPENTREP_FAC_FACRESULT_HPP
Result & create(const TravelQuery_T &, const Xapian::Database &)
Definition: FacResult.cpp:41
static FacResult & instance()
Definition: FacResult.cpp:29
virtual ~FacResult()
Definition: FacResult.cpp:24
std::string TravelQuery_T
Class wrapping a set of Xapian documents having matched a given query string.
Definition: Result.hpp:48