OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
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
11namespace OPENTREP {
12
13 // Forward declarations
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&,
79
80
81 protected:
89
90 private:
94 static FacOpenTrepServiceContext* _instance;
95 };
96
97}
98#endif // __OPENTREP_FAC_FACOPENTREPSERVICECONTEXT_HPP
Factory for an OPENTREP_ServiceContext object.
OPENTREP_ServiceContext & create(const TravelDBFilePath_T &, const DBType &, const SQLDBConnectionString_T &, const DeploymentNumber_T &)
static FacOpenTrepServiceContext & instance()
Class holding the context of the OpenTrep services.
bool shouldAddPORInSQLDB_T
bool shouldIndexPORInXapian_T
unsigned short DeploymentNumber_T
bool shouldIndexNonIATAPOR_T
Enumeration of database types.
Definition DBType.hpp:17