SimFQT Logo  1.00.0
C++ Simulated Fare Quote System Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
simfqt_parseFareRules.cpp File Reference
#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 Documentation

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

Definition at line 24 of file simfqt_parseFareRules.cpp.


Function Documentation

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().

template<class T >
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().


Variable Documentation

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().