Class holding the context of the OpenTrep services. More...
#include <opentrep/service/OPENTREP_ServiceContext.hpp>
Friends | |
class | FacOpenTrepServiceContext |
Class holding the context of the OpenTrep services.
Definition at line 28 of file OPENTREP_ServiceContext.hpp.
|
inline |
Get the World object (BOM root).
Definition at line 35 of file OPENTREP_ServiceContext.hpp.
World & OPENTREP::OPENTREP_ServiceContext::getWorldHandler | ( | ) | const |
Get the World object (BOM root).
Definition at line 146 of file OPENTREP_ServiceContext.cpp.
References getWorldHandler().
Referenced by getWorldHandler().
|
inline |
Get the file-path of the file of POR (points of reference).
Definition at line 47 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::getFilePaths(), and OPENTREP::OPENTREP_Service::insertIntoDBAndXapian().
|
inline |
Get the Xapian database name.
Definition at line 54 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::drawRandomLocations(), OPENTREP::OPENTREP_Service::getFilePaths(), OPENTREP::OPENTREP_Service::getIndexSize(), OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), and OPENTREP::OPENTREP_Service::interpretTravelRequest().
|
inline |
Get the SQL database type.
Definition at line 61 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::createSQLDBIndexes(), OPENTREP::OPENTREP_Service::createSQLDBTables(), OPENTREP::OPENTREP_Service::createSQLDBUser(), OPENTREP::OPENTREP_Service::getNbOfPORFromDB(), OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), OPENTREP::OPENTREP_Service::interpretTravelRequest(), OPENTREP::OPENTREP_Service::listByFaaCode(), OPENTREP::OPENTREP_Service::listByGeonameID(), OPENTREP::OPENTREP_Service::listByIataCode(), OPENTREP::OPENTREP_Service::listByIcaoCode(), OPENTREP::OPENTREP_Service::listByUICCode(), and OPENTREP::OPENTREP_Service::listByUNLOCode().
|
inline |
Get the SQL database connection string.
Definition at line 68 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::createSQLDBIndexes(), OPENTREP::OPENTREP_Service::createSQLDBTables(), OPENTREP::OPENTREP_Service::createSQLDBUser(), OPENTREP::OPENTREP_Service::getFilePaths(), OPENTREP::OPENTREP_Service::getNbOfPORFromDB(), OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), OPENTREP::OPENTREP_Service::interpretTravelRequest(), OPENTREP::OPENTREP_Service::listByFaaCode(), OPENTREP::OPENTREP_Service::listByGeonameID(), OPENTREP::OPENTREP_Service::listByIataCode(), OPENTREP::OPENTREP_Service::listByIcaoCode(), OPENTREP::OPENTREP_Service::listByUICCode(), and OPENTREP::OPENTREP_Service::listByUNLOCode().
|
inline |
Get the number/version of the current deployment.
Definition at line 75 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::createSQLDBUser(), OPENTREP::OPENTREP_Service::getDeploymentNumber(), and OPENTREP::OPENTREP_Service::toggleDeploymentNumber().
|
inline |
Get the flag stating whether or not all the POR should be indexed.
Definition at line 82 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), and OPENTREP::OPENTREP_Service::toggleShouldIncludeAllPORFlag().
|
inline |
Get the flag stating whether or not to add the POR in the Xapian index.
Definition at line 89 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), and OPENTREP::OPENTREP_Service::toggleShouldIndexPORInXapianFlag().
|
inline |
Get the flag stating whether or not to add the POR in the SQL database.
Definition at line 96 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), and OPENTREP::OPENTREP_Service::toggleShouldAddPORInSQLDBFlag().
|
inline |
Get the Unicode transliterator.
Definition at line 103 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), and OPENTREP::OPENTREP_Service::interpretTravelRequest().
|
inline |
Set the World object (BOM root).
Definition at line 112 of file OPENTREP_ServiceContext.hpp.
|
inline |
Set the file-path of the file of POR (points of reference).
Definition at line 119 of file OPENTREP_ServiceContext.hpp.
|
inline |
Set the Xapian database name.
Definition at line 126 of file OPENTREP_ServiceContext.hpp.
|
inline |
Set the SQL database type.
Definition at line 134 of file OPENTREP_ServiceContext.hpp.
|
inline |
Set the SQL database connection string.
Definition at line 141 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::setSQLDBConnectString().
|
inline |
Set the number/version of the current deployment.
Definition at line 149 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::toggleDeploymentNumber().
|
inline |
Set the flag stating whether or not all the POR should be indexed.
Definition at line 157 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::toggleShouldIncludeAllPORFlag().
|
inline |
Set the flag stating whether or not to add the POR in the Xapian index.
Definition at line 164 of file OPENTREP_ServiceContext.hpp.
|
inline |
Set the flag stating whether or not to add the POR in the SQL database.
Definition at line 171 of file OPENTREP_ServiceContext.hpp.
Referenced by OPENTREP::OPENTREP_Service::toggleShouldAddPORInSQLDBFlag().
|
inline |
Set the Unicode transliterator.
Definition at line 178 of file OPENTREP_ServiceContext.hpp.
const std::string OPENTREP::OPENTREP_ServiceContext::shortDisplay | ( | ) | const |
Display the short OPENTREP_ServiceContext content.
Definition at line 152 of file OPENTREP_ServiceContext.cpp.
References shortDisplay().
Referenced by display(), and shortDisplay().
const std::string OPENTREP::OPENTREP_ServiceContext::display | ( | ) | const |
Display the full OPENTREP_ServiceContext content.
Definition at line 173 of file OPENTREP_ServiceContext.cpp.
References display(), and shortDisplay().
Referenced by OPENTREP::OPENTREP_Service::createSQLDBIndexes(), OPENTREP::OPENTREP_Service::createSQLDBTables(), OPENTREP::OPENTREP_Service::createSQLDBUser(), display(), OPENTREP::OPENTREP_Service::drawRandomLocations(), OPENTREP::OPENTREP_Service::getIndexSize(), OPENTREP::OPENTREP_Service::getNbOfPORFromDB(), OPENTREP::OPENTREP_Service::insertIntoDBAndXapian(), OPENTREP::OPENTREP_Service::interpretTravelRequest(), OPENTREP::OPENTREP_Service::listByFaaCode(), OPENTREP::OPENTREP_Service::listByGeonameID(), OPENTREP::OPENTREP_Service::listByIataCode(), OPENTREP::OPENTREP_Service::listByIcaoCode(), OPENTREP::OPENTREP_Service::listByUICCode(), OPENTREP::OPENTREP_Service::listByUNLOCode(), OPENTREP::OPENTREP_Service::setSQLDBConnectString(), OPENTREP::OPENTREP_Service::toggleDeploymentNumber(), OPENTREP::OPENTREP_Service::toggleShouldAddPORInSQLDBFlag(), OPENTREP::OPENTREP_Service::toggleShouldIncludeAllPORFlag(), and OPENTREP::OPENTREP_Service::toggleShouldIndexPORInXapianFlag().
|
inlinevirtualinherited |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Definition at line 22 of file ServiceAbstract.hpp.
|
inlinevirtualinherited |
Read a Business Object from an input stream.
istream& | the input stream. |
Definition at line 26 of file ServiceAbstract.hpp.
Referenced by operator>>().
|
friend |
Definition at line 29 of file OPENTREP_ServiceContext.hpp.
References FacOpenTrepServiceContext.
Referenced by FacOpenTrepServiceContext.