1#ifndef __TRADEMGEN_CMD_DEMANDPARSERHELPER_HPP
2#define __TRADEMGEN_CMD_DEMANDPARSERHELPER_HPP
10#include <stdair/command/CmdAbstract.hpp>
12#include <sevmgr/SEVMGR_Types.hpp>
20 struct RandomGeneration;
25 namespace DemandParserHelper {
187 void operator() (
unsigned int iInteger)
const;
262 void operator() (
unsigned int iInteger)
const;
277 doEndDemand (SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration&,
385 public boost::spirit::classic::grammar<DemandParser> {
387 DemandParser (SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration&,
390 template <
typename ScannerT>
411 boost::spirit::classic::rule<ScannerT>
const&
start()
const;
439 const stdair::Filename_T& iDemandInputFilename);
451 stdair::Filename_T _filename;
460 SEVMGR::SEVMGR_ServicePtr_T _sevmgrServicePtr;
463 stdair::RandomGeneration& _uniformGenerator;
boost::spirit::classic::file_iterator< char_t > iterator_t
ParserSemanticAction(DemandStruct &)
storePrefDepDateRangeStart(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storePrefDepDateRangeEnd(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storeOrigin(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storeDestination(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storePrefCabin(DemandStruct &)
void operator()(double iReal) const
storeDemandMean(DemandStruct &)
void operator()(double iReal) const
storeDemandStdDev(DemandStruct &)
storeDemandChangeFeeProb(DemandStruct &)
void operator()(double iReal) const
storeDemandChangeFeeDisutility(DemandStruct &)
void operator()(double iReal) const
void operator()(double iReal) const
storeDemandNonRefundableProb(DemandStruct &)
storeDemandNonRefundableDisutility(DemandStruct &)
void operator()(double iReal) const
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storePosCode(DemandStruct &)
void operator()(double iReal) const
storePosProbMass(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storeChannelCode(DemandStruct &)
storeChannelProbMass(DemandStruct &)
void operator()(double iReal) const
storeTripCode(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storeTripProbMass(DemandStruct &)
void operator()(double iReal) const
storeStayCode(DemandStruct &)
void operator()(unsigned int iInteger) const
void operator()(double iReal) const
storeStayProbMass(DemandStruct &)
storeFFCode(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
void operator()(double iReal) const
storeFFProbMass(DemandStruct &)
storePrefDepTime(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storePrefDepTimeProbMass(DemandStruct &)
void operator()(double iReal) const
void operator()(double iReal) const
storeTimeValue(DemandStruct &)
void operator()(double iReal) const
storeTimeValueProbMass(DemandStruct &)
void operator()(double iReal) const
void operator()(unsigned int iInteger) const
void operator()(double iReal) const
storeDTDProbMass(DemandStruct &)
doEndDemand(SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration &, const POSProbabilityMass_T &, DemandStruct &)
SEVMGR::SEVMGR_ServicePtr_T _sevmgrServicePtr
stdair::RandomGeneration & _uniformGenerator
void operator()(iterator_t iStr, iterator_t iStrEnd) const
const POSProbabilityMass_T & _posProbabilityMass
stdair::RandomGeneration & _uniformGenerator
DemandParser(SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration &, const POSProbabilityMass_T &, DemandStruct &)
const POSProbabilityMass_T & _posProbabilityMass
SEVMGR::SEVMGR_ServicePtr_T _sevmgrServicePtr
boost::spirit::classic::rule< ScannerT > dow
boost::spirit::classic::rule< ScannerT > demand
boost::spirit::classic::rule< ScannerT > trip_share
boost::spirit::classic::rule< ScannerT > demand_list
boost::spirit::classic::rule< ScannerT > non_refundable
boost::spirit::classic::rule< ScannerT > stay_pair
boost::spirit::classic::rule< ScannerT > time
boost::spirit::classic::rule< ScannerT > ff_pair
boost::spirit::classic::rule< ScannerT > pos_code
boost::spirit::classic::rule< ScannerT > demand_end
boost::spirit::classic::rule< ScannerT > channel_code
boost::spirit::classic::rule< ScannerT > pref_dep_time_dist
boost::spirit::classic::rule< ScannerT > origin
boost::spirit::classic::rule< ScannerT > wtp
boost::spirit::classic::rule< ScannerT > trip_code
boost::spirit::classic::rule< ScannerT > pref_dep_time_share
boost::spirit::classic::rule< ScannerT > pref_cabin
boost::spirit::classic::rule< ScannerT > channel_share
boost::spirit::classic::rule< ScannerT > pos_share
boost::spirit::classic::rule< ScannerT > channel_pair
boost::spirit::classic::rule< ScannerT > stay_share
boost::spirit::classic::rule< ScannerT > trip_pair
boost::spirit::classic::rule< ScannerT > time_value_pair
boost::spirit::classic::rule< ScannerT > destination
boost::spirit::classic::rule< ScannerT > pos_dist
boost::spirit::classic::rule< ScannerT > ff_code
boost::spirit::classic::rule< ScannerT > demand_params
boost::spirit::classic::rule< ScannerT > stay_dist
boost::spirit::classic::rule< ScannerT > dtd_dist
boost::spirit::classic::rule< ScannerT > pref_dep_time_pair
boost::spirit::classic::rule< ScannerT > time_value_dist
boost::spirit::classic::rule< ScannerT > pos_pair
boost::spirit::classic::rule< ScannerT > change_fees
boost::spirit::classic::rule< ScannerT > const & start() const
definition(DemandParser const &self)
boost::spirit::classic::rule< ScannerT > ff_share
boost::spirit::classic::rule< ScannerT > dtd_pair
boost::spirit::classic::rule< ScannerT > trip_dist
boost::spirit::classic::rule< ScannerT > pref_dep_date_range
boost::spirit::classic::rule< ScannerT > ff_dist
boost::spirit::classic::rule< ScannerT > channel_dist
boost::spirit::classic::rule< ScannerT > date
boost::spirit::classic::rule< ScannerT > time_value_share
boost::spirit::classic::rule< ScannerT > dtd_share
boost::spirit::classic::rule< ScannerT > not_to_be_parsed
DemandFileParser(SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration &, const POSProbabilityMass_T &, const stdair::Filename_T &iDemandInputFilename)