OpenTREP Logo  0.07.7
C++ Open Travel Request Parsing Library
FacOpenTrepServiceContext.hpp
Go to the documentation of this file.
1 #ifndef __OPENTREP_FAC_FACOPENTREPSERVICECONTEXT_HPP
2 #define __OPENTREP_FAC_FACOPENTREPSERVICECONTEXT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // OpenTrep
8 #include <opentrep/DBType.hpp>
10 
11 namespace OPENTREP {
12 
13  // Forward declarations
14  class OPENTREP_ServiceContext;
15 
16 
21  public:
22 
31 
39 
52  const DBType&,
54  const DeploymentNumber_T&);
55 
72  const TravelDBFilePath_T&,
73  const DBType&,
75  const DeploymentNumber_T&,
78  const shouldAddPORInSQLDB_T&);
79 
80 
81  protected:
89 
90  private:
94  static FacOpenTrepServiceContext* _instance;
95  };
96 
97 }
98 #endif // __OPENTREP_FAC_FACOPENTREPSERVICECONTEXT_HPP
Class holding the context of the OpenTrep services.
bool shouldIndexNonIATAPOR_T
static FacOpenTrepServiceContext & instance()
Enumeration of database types.
Definition: DBType.hpp:17
bool shouldAddPORInSQLDB_T
Factory for an OPENTREP_ServiceContext object.
bool shouldIndexPORInXapian_T
OPENTREP_ServiceContext & create(const TravelDBFilePath_T &, const DBType &, const SQLDBConnectionString_T &, const DeploymentNumber_T &)
unsigned short DeploymentNumber_T