0.08.01
C++ Open Travel Request Parsing Library
Toggle main menu visibility
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
>
9
#include <
opentrep/factory/FacServiceAbstract.hpp
>
10
11
namespace
OPENTREP
{
12
13
// Forward declarations
14
class
OPENTREP_ServiceContext
;
15
16
20
class
FacOpenTrepServiceContext
:
public
FacServiceAbstract
{
21
public
:
22
30
static
FacOpenTrepServiceContext
&
instance
();
31
38
~FacOpenTrepServiceContext
();
39
51
OPENTREP_ServiceContext
&
create
(
const
TravelDBFilePath_T
&,
52
const
DBType
&,
53
const
SQLDBConnectionString_T
&,
54
const
DeploymentNumber_T
&);
55
71
OPENTREP_ServiceContext
&
create
(
const
PORFilePath_T
&,
72
const
TravelDBFilePath_T
&,
73
const
DBType
&,
74
const
SQLDBConnectionString_T
&,
75
const
DeploymentNumber_T
&,
76
const
shouldIndexNonIATAPOR_T
&,
77
const
shouldIndexPORInXapian_T
&,
78
const
shouldAddPORInSQLDB_T
&);
79
80
81
protected
:
88
FacOpenTrepServiceContext
() {}
89
90
private
:
94
static
FacOpenTrepServiceContext
* _instance;
95
};
96
97
}
98
#endif
// __OPENTREP_FAC_FACOPENTREPSERVICECONTEXT_HPP
DBType.hpp
FacServiceAbstract.hpp
OPENTREP::FacOpenTrepServiceContext
Factory for an OPENTREP_ServiceContext object.
Definition
FacOpenTrepServiceContext.hpp:20
OPENTREP::FacOpenTrepServiceContext::~FacOpenTrepServiceContext
~FacOpenTrepServiceContext()
Definition
FacOpenTrepServiceContext.cpp:17
OPENTREP::FacOpenTrepServiceContext::FacOpenTrepServiceContext
FacOpenTrepServiceContext()
Definition
FacOpenTrepServiceContext.hpp:88
OPENTREP::FacOpenTrepServiceContext::create
OPENTREP_ServiceContext & create(const TravelDBFilePath_T &, const DBType &, const SQLDBConnectionString_T &, const DeploymentNumber_T &)
Definition
FacOpenTrepServiceContext.cpp:35
OPENTREP::FacOpenTrepServiceContext::instance
static FacOpenTrepServiceContext & instance()
Definition
FacOpenTrepServiceContext.cpp:22
OPENTREP::FacServiceAbstract::FacServiceAbstract
FacServiceAbstract()
Definition
FacServiceAbstract.hpp:31
OPENTREP::OPENTREP_ServiceContext
Class holding the context of the OpenTrep services.
Definition
OPENTREP_ServiceContext.hpp:28
OPENTREP
Definition
BasChronometer.cpp:10
OPENTREP::shouldAddPORInSQLDB_T
bool shouldAddPORInSQLDB_T
Definition
OPENTREP_Types.hpp:146
OPENTREP::shouldIndexPORInXapian_T
bool shouldIndexPORInXapian_T
Definition
OPENTREP_Types.hpp:141
OPENTREP::DeploymentNumber_T
unsigned short DeploymentNumber_T
Definition
OPENTREP_Types.hpp:108
OPENTREP::shouldIndexNonIATAPOR_T
bool shouldIndexNonIATAPOR_T
Definition
OPENTREP_Types.hpp:136
OPENTREP::DBType
Enumeration of database types.
Definition
DBType.hpp:17
OPENTREP::PORFilePath_T
Definition
OPENTREP_Types.hpp:37
OPENTREP::SQLDBConnectionString_T
Definition
OPENTREP_Types.hpp:56
OPENTREP::TravelDBFilePath_T
Definition
OPENTREP_Types.hpp:46
Generated on
for OpenTREP by
1.17.0