16 OPENTREP_ServiceContext::OPENTREP_ServiceContext()
25 OPENTREP_ServiceContext::
26 OPENTREP_ServiceContext (
const TravelDBFilePath_T& iTravelDBFilePath,
27 const SQLiteDBFilePath_T& iSQLiteDBFilePath)
30 _travelDBFilePath (iTravelDBFilePath),
31 _sqliteDBFilePath (iSQLiteDBFilePath) {
35 OPENTREP_ServiceContext::
36 OPENTREP_ServiceContext (
const PORFilePath_T& iPORFilePath,
37 const TravelDBFilePath_T& iTravelDBFilePath,
38 const SQLiteDBFilePath_T& iSQLiteDBFilePath)
39 : _world (NULL), _porFilePath (iPORFilePath),
40 _travelDBFilePath (iTravelDBFilePath),
41 _sqliteDBFilePath (iSQLiteDBFilePath) {
45 OPENTREP_ServiceContext::~OPENTREP_ServiceContext() {
50 assert (_world != NULL);
56 std::ostringstream oStr;
57 oStr <<
"OPENTREP_ServiceContext: "
58 <<
"file-path of the POR file: " << _porFilePath
59 <<
"; Xapian database (directory of the index): " << _travelDBFilePath
60 <<
"; SQLite3 database file-path: " << _sqliteDBFilePath
67 std::ostringstream oStr;
const std::string shortDisplay() const
const std::string DEFAULT_OPENTREP_SQLITE_DB_FILEPATH
const std::string display() const
World & getWorldHandler() const
const std::string DEFAULT_OPENTREP_XAPIAN_DB_FILEPATH
const std::string DEFAULT_OPENTREP_POR_FILEPATH
std::string display() const