$treeview $search $mathjax
AirRAC Logo  1.00.0
$projectbrief
$projectbrief
$searchbox

airrac.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/service/Logger.hpp>
#include <airrac/AIRRAC_Service.hpp>
#include <airrac/config/airrac-paths.hpp>

Go to the source code of this file.

Typedefs

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

Functions

const std::string K_AIRRAC_DEFAULT_LOG_FILENAME ("airrac.log")
const std::string K_AIRRAC_DEFAULT_YIELD_INPUT_FILENAME (STDAIR_SAMPLE_DIR"/yieldstore01.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 &ioYieldInputFilename, std::string &ioLogFilename)
int main (int argc, char *argv[])

Variables

const bool K_AIRRAC_DEFAULT_BUILT_IN_INPUT = false
const int K_AIRRAC_EARLY_RETURN_STATUS = 99

Typedef Documentation

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

Definition at line 23 of file airrac.cpp.


Function Documentation

const std::string K_AIRRAC_DEFAULT_LOG_FILENAME ( "airrac.log"   ) 

Default name and location for the log file.

Referenced by readConfiguration().

const std::string K_AIRRAC_DEFAULT_YIELD_INPUT_FILENAME ( STDAIR_SAMPLE_DIR"/yieldstore01.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 
) [inline]

Definition at line 43 of file airrac.cpp.

int readConfiguration ( int  argc,
char *  argv[],
bool &  ioIsBuiltin,
stdair::Filename_T &  ioYieldInputFilename,
std::string &  ioLogFilename 
)

Variable Documentation

const bool K_AIRRAC_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 36 of file airrac.cpp.

Referenced by readConfiguration().

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

Definition at line 39 of file airrac.cpp.

Referenced by main(), and readConfiguration().