#include <cassert>
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <list>
#include <string>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/tokenizer.hpp>
#include <boost/program_options.hpp>
#include <stdair/STDAIR_Service.hpp>
#include <stdair/bom/TravelSolutionStruct.hpp>
#include <stdair/bom/BookingRequestStruct.hpp>
#include <stdair/service/Logger.hpp>
#include <simfqt/SIMFQT_Service.hpp>
#include <simfqt/config/simfqt-paths.hpp>
Go to the source code of this file.
Typedefs | |
typedef std::vector< std::string > | WordList_T |
Functions | |
const std::string | K_SIMFQT_DEFAULT_LOG_FILENAME ("simfqt_parseFareRules.log") |
const std::string | K_SIMFQT_DEFAULT_FARE_INPUT_FILENAME (STDAIR_SAMPLE_DIR"/fare01.csv") |
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 &ioFareInputFilename, std::string &ioLogFilename) |
int | main (int argc, char *argv[]) |
Variables | |
const bool | K_SIMFQT_DEFAULT_BUILT_IN_INPUT = false |
const int | K_SIMFQT_EARLY_RETURN_STATUS = 99 |
typedef std::vector<std::string> WordList_T |
Definition at line 24 of file simfqt_parseFareRules.cpp.
const std::string K_SIMFQT_DEFAULT_LOG_FILENAME | ( | "simfqt_parseFareRules.log" | ) |
Default name and location for the log file.
Referenced by readConfiguration().
const std::string K_SIMFQT_DEFAULT_FARE_INPUT_FILENAME | ( | STDAIR_SAMPLE_DIR"/fare01.csv" | ) |
Default name and location for the (CSV) input file.
Referenced by readConfiguration().
std::ostream& operator<< | ( | std::ostream & | os, |
const std::vector< T > & | v | ||
) |
Definition at line 44 of file simfqt_parseFareRules.cpp.
int readConfiguration | ( | int | argc, |
char * | argv[], | ||
bool & | ioIsBuiltin, | ||
stdair::Filename_T & | ioFareInputFilename, | ||
std::string & | ioLogFilename | ||
) |
Read and parse the command line options.
Definition at line 51 of file simfqt_parseFareRules.cpp.
References K_SIMFQT_DEFAULT_BUILT_IN_INPUT, K_SIMFQT_DEFAULT_FARE_INPUT_FILENAME(), K_SIMFQT_DEFAULT_LOG_FILENAME(), and K_SIMFQT_EARLY_RETURN_STATUS.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 154 of file simfqt_parseFareRules.cpp.
References SIMFQT::SIMFQT_Service::buildBookingRequest(), SIMFQT::SIMFQT_Service::buildSampleBom(), SIMFQT::SIMFQT_Service::buildSampleTravelSolutions(), SIMFQT::SIMFQT_Service::csvDisplay(), K_SIMFQT_EARLY_RETURN_STATUS, SIMFQT::SIMFQT_Service::parseAndLoad(), SIMFQT::SIMFQT_Service::quotePrices(), and readConfiguration().
const bool K_SIMFQT_DEFAULT_BUILT_IN_INPUT = false |
Default for the input type. It can be either built-in or provided by an input file. That latter must then be given with the -i option.
Definition at line 37 of file simfqt_parseFareRules.cpp.
Referenced by readConfiguration().
const int K_SIMFQT_EARLY_RETURN_STATUS = 99 |
Early return status (so that it can be differentiated from an error).
Definition at line 40 of file simfqt_parseFareRules.cpp.
Referenced by main(), and readConfiguration().