14 FacOpenTrepServiceContext* FacOpenTrepServiceContext::_instance = NULL;
24 if (_instance == NULL) {
26 assert (_instance != NULL);
40 aOPENTREP_ServiceContext_ptr =
43 assert (aOPENTREP_ServiceContext_ptr != NULL);
46 _pool.push_back (aOPENTREP_ServiceContext_ptr);
48 return *aOPENTREP_ServiceContext_ptr;
62 aOPENTREP_ServiceContext_ptr =
64 iSQLDBConnStr, iDeploymentNumber,
65 iShouldIndexNonIATAPOR,
66 iShouldIndexPORInXapian,
67 iShouldAddPORInSQLDB);
68 assert (aOPENTREP_ServiceContext_ptr != NULL);
71 _pool.push_back (aOPENTREP_ServiceContext_ptr);
73 return *aOPENTREP_ServiceContext_ptr;
static FacSupervisor & instance()
void registerServiceFactory(FacServiceAbstract *)
~FacOpenTrepServiceContext()
Class holding the context of the OpenTrep services.
bool shouldIndexNonIATAPOR_T
static FacOpenTrepServiceContext & instance()
Enumeration of database types.
FacOpenTrepServiceContext()
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