1 #ifndef __OPENTREP_SVC_OPENTREPSERVICECONTEXT_HPP 2 #define __OPENTREP_SVC_OPENTREPSERVICECONTEXT_HPP 55 return _travelDBFilePath;
69 return _sqlDBConnectionString;
76 return _deploymentNumber;
83 return _shouldIndexNonIATAPOR;
90 return _shouldIndexPORInXapian;
97 return _shouldAddPORInSQLDB;
104 return _transliterator;
128 updateXapianAndSQLDBConnectionWithDeploymentNumber();
135 _sqlDBType = iDBType;
143 updateXapianAndSQLDBConnectionWithDeploymentNumber();
150 _deploymentNumber = iDeploymentNumber;
151 updateXapianAndSQLDBConnectionWithDeploymentNumber();
158 _shouldIndexNonIATAPOR = iShouldIndexNonIATAPOR;
165 _shouldIndexPORInXapian = iShouldIndexPORInXapian;
172 _shouldAddPORInSQLDB = iShouldAddPORInSQLDB;
179 _transliterator = iTransliterator;
193 const std::string
display()
const;
249 void updateXapianAndSQLDBConnectionWithDeploymentNumber();
399 #endif // __OPENTREP_SVC_OPENTREPSERVICECONTEXT_HPP void setWorld(World &ioWorld)
const DBType & getSQLDBType() const
void setSQLDBConnectionString(const std::string &iSQLDBConnStr)
const TravelDBFilePath_T & getTravelDBFilePath() const
void setTransliterator(const OTransliterator &iTransliterator)
Class holding the context of the OpenTrep services.
World & getWorldHandler() const
void setShouldIncludeAllPORFlag(const shouldIndexNonIATAPOR_T &iShouldIndexNonIATAPOR)
void setTravelDBFilePath(const std::string &iTravelDBFilePath)
bool shouldIndexNonIATAPOR_T
const DeploymentNumber_T & getDeploymentNumber() const
void setPORFilePath(const std::string &iPORFilePath)
const shouldAddPORInSQLDB_T & getShouldAddPORInSQLDB() const
void setShouldAddPORInSQLDB(const shouldAddPORInSQLDB_T &iShouldAddPORInSQLDB)
const std::string shortDisplay() const
const std::string display() const
Enumeration of database types.
const shouldIndexNonIATAPOR_T & getShouldIncludeAllPORFlag() const
const SQLDBConnectionString_T & getSQLDBConnectionString() const
bool shouldAddPORInSQLDB_T
Factory for an OPENTREP_ServiceContext object.
bool shouldIndexPORInXapian_T
void setShouldIndexPORInXapianFlag(const shouldIndexPORInXapian_T &iShouldIndexPORInXapian)
const OTransliterator & getTransliterator() const
void setSQLDBType(const DBType &iDBType)
void setDeploymentNumber(const DeploymentNumber_T &iDeploymentNumber)
const shouldIndexPORInXapian_T & getShouldIndexPORInXapianFlag() const
unsigned short DeploymentNumber_T
const PORFilePath_T & getPORFilePath() const