AirSched Logo  0.1.4
C++ Simulated Airline Schedule Manager Library
airsched.cpp File Reference
#include <cassert>
#include <sstream>
#include <fstream>
#include <string>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/program_options.hpp>
#include <boost/tokenizer.hpp>
#include <boost/lexical_cast.hpp>
#include <stdair/STDAIR_Service.hpp>
#include <stdair/bom/BomDisplay.hpp>
#include <stdair/bom/BookingRequestStruct.hpp>
#include <stdair/bom/TravelSolutionStruct.hpp>
#include <stdair/service/Logger.hpp>
#include <airsched/AIRSCHED_Service.hpp>
#include <airsched/batches/BookingRequestParser.hpp>
#include <airsched/config/airsched-paths.hpp>

Go to the source code of this file.

Typedefs

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

Functions

const std::string K_AIRSCHED_DEFAULT_LOG_FILENAME ("airsched.log")
const std::string K_AIRSCHED_DEFAULT_INPUT_FILENAME (STDAIR_SAMPLE_DIR"/schedule03.csv")
const std::string K_AIRSCHED_DEFAULT_BOOKING_REQUEST ("NCE BKK NCE 2007-04-21 2007-03-21 08:32:00 C 1 DF RO 5 NONE 10:00:00 2000.0 20.0")
std::string createStringFromWordList (const WordList_T &iWordList)
template<class T >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &v)
int readConfiguration (int argc, char *argv[], bool &ioIsBuiltin, bool &ioReadBookingRequestFromCmdLine, stdair::Filename_T &ioInputFilename, std::string &ioLogFilename, std::string &ioBookingRequestString)
stdair::BookingRequestStruct parseBookingRequest (const std::string &iRequestOption)
int main (int argc, char *argv[])

Variables

const bool K_AIRSCHED_DEFAULT_BUILT_IN_INPUT = false
const bool K_AIRSCHED_DEFAULT_BOOKING_REQUEST_MODE = false
const int K_AIRSCHED_EARLY_RETURN_STATUS = 99

Typedef Documentation

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

Definition at line 24 of file airsched.cpp.


Function Documentation

const std::string K_AIRSCHED_DEFAULT_LOG_FILENAME ( "airsched.log"  )

Default name and location for the log file.

Referenced by readConfiguration().

const std::string K_AIRSCHED_DEFAULT_INPUT_FILENAME ( STDAIR_SAMPLE_DIR"/schedule03.csv"  )

Default name and location for the (CSV) input file.

Referenced by readConfiguration().

const std::string K_AIRSCHED_DEFAULT_BOOKING_REQUEST ( "NCE BKK NCE 2007-04-21 2007-03-21 08:32:00 C 1 DF RO 5 NONE 10:00:00 2000.0 20.0"  )

Default booking request string, to be seached against the AirSched network.

Referenced by main().

std::string createStringFromWordList ( const WordList_T iWordList)

Definition at line 59 of file airsched.cpp.

Referenced by readConfiguration().

template<class T >
std::ostream& operator<< ( std::ostream &  os,
const std::vector< T > &  v 
)

Definition at line 77 of file airsched.cpp.

int readConfiguration ( int  argc,
char *  argv[],
bool &  ioIsBuiltin,
bool &  ioReadBookingRequestFromCmdLine,
stdair::Filename_T &  ioInputFilename,
std::string &  ioLogFilename,
std::string &  ioBookingRequestString 
)
stdair::BookingRequestStruct parseBookingRequest ( const std::string &  iRequestOption)

Definition at line 230 of file airsched.cpp.

Referenced by main().


Variable Documentation

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 the -s option.

Definition at line 44 of file airsched.cpp.

Referenced by readConfiguration().

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 50 of file airsched.cpp.

Referenced by readConfiguration().

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

Definition at line 84 of file airsched.cpp.

Referenced by main(), and readConfiguration().