#include <sstream>#include <fstream>#include <string>#include <boost/program_options.hpp>#include <stdair/stdair_basic_types.hpp>#include <stdair/basic/BasLogParams.hpp>#include <stdair/basic/BasDBParams.hpp>#include <stdair/basic/BasFileMgr.hpp>#include <stdair/bom/TravelSolutionStruct.hpp>#include <stdair/bom/BookingRequestStruct.hpp>#include <stdair/service/Logger.hpp>#include <simfqt/SIMFQT_Types.hpp>#include <simcrs/SIMCRS_Service.hpp>#include <simcrs/config/simcrs-paths.hpp>Go to the source code of this file.
Functions | |
| const std::string | K_SIMCRS_DEFAULT_LOG_FILENAME ("simcrs.log") |
| const std::string | K_SIMCRS_DEFAULT_SCHEDULE_INPUT_FILENAME (STDAIR_SAMPLE_DIR"/schedule01.csv") |
| const std::string | K_SIMCRS_DEFAULT_OND_INPUT_FILENAME (STDAIR_SAMPLE_DIR"/ond01.csv") |
| const std::string | K_SIMCRS_DEFAULT_FRAT5_INPUT_FILENAME (STDAIR_SAMPLE_DIR"/frat5.csv") |
| const std::string | K_SIMCRS_DEFAULT_FF_DISUTILITY_INPUT_FILENAME (STDAIR_SAMPLE_DIR"/ffDisutility.csv") |
| const std::string | K_SIMCRS_DEFAULT_YIELD_INPUT_FILENAME (STDAIR_SAMPLE_DIR"/yieldstore01.csv") |
| const std::string | K_SIMCRS_DEFAULT_FARE_INPUT_FILENAME (STDAIR_SAMPLE_DIR"/fare01.csv") |
| const std::string | K_SIMCRS_DEFAULT_DB_USER ("dsim") |
| const std::string | K_SIMCRS_DEFAULT_DB_PASSWD ("dsim") |
| const std::string | K_SIMCRS_DEFAULT_DB_DBNAME ("sim_dsim") |
| const std::string | K_SIMCRS_DEFAULT_DB_HOST ("localhost") |
| const std::string | K_SIMCRS_DEFAULT_DB_PORT ("3306") |
| template<class T > | |
| std::ostream & | operator<< (std::ostream &os, const std::vector< T > &v) |
| int | readConfiguration (int argc, char *argv[], bool &ioIsBuiltin, stdair::Filename_T &ioScheduleInputFilename, stdair::Filename_T &ioOnDInputFilename, stdair::Filename_T &ioFRAT5Filename, stdair::Filename_T &ioFFDisutilityFilename, stdair::Filename_T &ioYieldInputFilename, stdair::Filename_T &ioFareInputFilename, stdair::Filename_T &ioLogFilename, std::string &ioDBUser, std::string &ioDBPasswd, std::string &ioDBHost, std::string &ioDBPort, std::string &ioDBDBName) |
| int | main (int argc, char *argv[]) |
Variables | |
| const bool | K_SIMCRS_DEFAULT_BUILT_IN_INPUT = false |
| const int | K_SIMCRS_EARLY_RETURN_STATUS = 99 |
| const std::string K_SIMCRS_DEFAULT_LOG_FILENAME | ( | "simcrs.log" | ) |
Default name and location for the log file.
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_SCHEDULE_INPUT_FILENAME | ( | STDAIR_SAMPLE_DIR"/schedule01.csv" | ) |
Default name and location for the (CSV) schedule input file.
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_OND_INPUT_FILENAME | ( | STDAIR_SAMPLE_DIR"/ond01.csv" | ) |
Default name and location for the (CSV) O&D input file.
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_FRAT5_INPUT_FILENAME | ( | STDAIR_SAMPLE_DIR"/frat5.csv" | ) |
FRAT5 curve input file name
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_FF_DISUTILITY_INPUT_FILENAME | ( | STDAIR_SAMPLE_DIR"/ffDisutility.csv" | ) |
Fare family disutility curve input file name
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_YIELD_INPUT_FILENAME | ( | STDAIR_SAMPLE_DIR"/yieldstore01.csv" | ) |
Default name and location for the (CSV) yield input file.
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_FARE_INPUT_FILENAME | ( | STDAIR_SAMPLE_DIR"/fare01.csv" | ) |
Default name and location for the (CSV) fare input file.
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_DB_USER | ( | "dsim" | ) |
Default name and location for the MySQL database.
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_DB_PASSWD | ( | "dsim" | ) |
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_DB_DBNAME | ( | "sim_dsim" | ) |
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_DB_HOST | ( | "localhost" | ) |
Referenced by readConfiguration().
| const std::string K_SIMCRS_DEFAULT_DB_PORT | ( | "3306" | ) |
Referenced by readConfiguration().
| std::ostream& operator<< | ( | std::ostream & | os, |
| const std::vector< T > & | v | ||
| ) |
Definition at line 80 of file simcrs.cpp.
| int readConfiguration | ( | int | argc, |
| char * | argv[], | ||
| bool & | ioIsBuiltin, | ||
| stdair::Filename_T & | ioScheduleInputFilename, | ||
| stdair::Filename_T & | ioOnDInputFilename, | ||
| stdair::Filename_T & | ioFRAT5Filename, | ||
| stdair::Filename_T & | ioFFDisutilityFilename, | ||
| stdair::Filename_T & | ioYieldInputFilename, | ||
| stdair::Filename_T & | ioFareInputFilename, | ||
| stdair::Filename_T & | ioLogFilename, | ||
| std::string & | ioDBUser, | ||
| std::string & | ioDBPasswd, | ||
| std::string & | ioDBHost, | ||
| std::string & | ioDBPort, | ||
| std::string & | ioDBDBName | ||
| ) |
Read and parse the command line options.
Definition at line 90 of file simcrs.cpp.
References K_SIMCRS_DEFAULT_BUILT_IN_INPUT, K_SIMCRS_DEFAULT_DB_DBNAME(), K_SIMCRS_DEFAULT_DB_HOST(), K_SIMCRS_DEFAULT_DB_PASSWD(), K_SIMCRS_DEFAULT_DB_PORT(), K_SIMCRS_DEFAULT_DB_USER(), K_SIMCRS_DEFAULT_FARE_INPUT_FILENAME(), K_SIMCRS_DEFAULT_FF_DISUTILITY_INPUT_FILENAME(), K_SIMCRS_DEFAULT_FRAT5_INPUT_FILENAME(), K_SIMCRS_DEFAULT_LOG_FILENAME(), K_SIMCRS_DEFAULT_OND_INPUT_FILENAME(), K_SIMCRS_DEFAULT_SCHEDULE_INPUT_FILENAME(), K_SIMCRS_DEFAULT_YIELD_INPUT_FILENAME(), K_SIMCRS_EARLY_RETURN_STATUS, PACKAGE_NAME, PACKAGE_VERSION, and PREFIXDIR.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 313 of file simcrs.cpp.
References SIMCRS::SIMCRS_Service::buildSampleBom(), SIMCRS::SIMCRS_Service::buildSampleBookingRequest(), SIMCRS::SIMCRS_Service::calculateSegmentPathList(), SIMCRS::SIMCRS_Service::csvDisplay(), SIMCRS::SIMCRS_Service::fareQuote(), K_SIMCRS_EARLY_RETURN_STATUS, SIMCRS::SIMCRS_Service::parseAndLoad(), readConfiguration(), and SIMCRS::SIMCRS_Service::sell().
| const bool K_SIMCRS_DEFAULT_BUILT_IN_INPUT = false |
Default for the BOM tree building. The BOM tree can either be built-in or provided by an input file. That latter must then be given with input file options (-s, -o, -f, -y).
Definition at line 67 of file simcrs.cpp.
Referenced by readConfiguration().
| const int K_SIMCRS_EARLY_RETURN_STATUS = 99 |
Early return status (so that it can be differentiated from an error).
Definition at line 87 of file simcrs.cpp.
Referenced by main(), and readConfiguration().
1.8.1.1