OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
opentrep-indexer.cpp File Reference
#include <cassert>
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <string>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/program_options.hpp>
#include <opentrep/OPENTREP_Service.hpp>
#include <opentrep/Location.hpp>
#include <opentrep/CityDetails.hpp>
#include <opentrep/DBType.hpp>
#include <opentrep/basic/BasConst_OPENTREP_Service.hpp>
#include <opentrep/basic/Utilities.hpp>
#include <opentrep/config/opentrep-paths.hpp>

Go to the source code of this file.

Typedefs

typedef std::vector< std::string > WordList_T
 

Functions

const std::string K_OPENTREP_DEFAULT_LOG_FILENAME ("opentrep-indexer.log")
 
int readConfiguration (int argc, char *argv[], std::string &ioPORFilepath, std::string &ioXapianDBFilepath, std::string &ioSQLDBTypeString, std::string &ioSQLDBConnectionString, unsigned short &ioDeploymentNumber, bool &ioIncludeNonIATAPOR, bool &ioIndexPORInXapian, bool &ioAddPORInDB, std::string &ioLogFilename, std::ostringstream &oStr)
 
int main (int argc, char *argv[])
 

Variables

const bool K_OPENTREP_DEFAULT_POR_INCLUDING = false
 
const int K_OPENTREP_EARLY_RETURN_STATUS = 99
 

Typedef Documentation

◆ WordList_T

typedef std::vector<std::string> WordList_T

Definition at line 23 of file opentrep-indexer.cpp.

Function Documentation

◆ K_OPENTREP_DEFAULT_LOG_FILENAME()

const std::string K_OPENTREP_DEFAULT_LOG_FILENAME ( "opentrep-indexer.log" )

Default name and location for the log file.

Referenced by readConfiguration(), readConfiguration(), and readConfiguration().

◆ readConfiguration()

int readConfiguration ( int argc,
char * argv[],
std::string & ioPORFilepath,
std::string & ioXapianDBFilepath,
std::string & ioSQLDBTypeString,
std::string & ioSQLDBConnectionString,
unsigned short & ioDeploymentNumber,
bool & ioIncludeNonIATAPOR,
bool & ioIndexPORInXapian,
bool & ioAddPORInDB,
std::string & ioLogFilename,
std::ostringstream & oStr )

◆ main()

int main ( int argc,
char * argv[] )

Variable Documentation

◆ K_OPENTREP_DEFAULT_POR_INCLUDING

const bool K_OPENTREP_DEFAULT_POR_INCLUDING = false

Default flag for the including (or not) of the non-IATA-referenced POR. By default, only POR which are referenced by IATA are included. If the flag is set up at 1, then also the POR referenced by other international organizations (such ICAO or UN/LOCODE) are included.

  • 0 = Do not include non-IATA-referenced POR
  • 1 = Include non-IATA-referenced POR (eg, POR referenced by ICAO or UN/LOCODE)

Definition at line 44 of file opentrep-indexer.cpp.

Referenced by readConfiguration().

◆ K_OPENTREP_EARLY_RETURN_STATUS

const int K_OPENTREP_EARLY_RETURN_STATUS = 99

Early return status (so that it can be differentiated from an error).

Definition at line 49 of file opentrep-indexer.cpp.

Referenced by main(), readConfiguration(), readConfiguration(), and readConfiguration().