AirRAC Logo  1.00.3
C++ Simulated Revenue Accounting (RAC) System Library
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

◆ WordList_T

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

Definition at line 23 of file airrac.cpp.

Function Documentation

◆ K_AIRRAC_DEFAULT_LOG_FILENAME()

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

Default name and location for the log file.

Referenced by readConfiguration().

◆ K_AIRRAC_DEFAULT_YIELD_INPUT_FILENAME()

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

◆ operator<<()

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

Definition at line 43 of file airrac.cpp.

◆ readConfiguration()

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

◆ main()

Variable Documentation

◆ K_AIRRAC_DEFAULT_BUILT_IN_INPUT

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

◆ K_AIRRAC_EARLY_RETURN_STATUS

const int K_AIRRAC_EARLY_RETURN_STATUS = 99

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