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;
473 #endif // __TRADEMGEN_CMD_DEMANDPARSERHELPER_HPP
boost::spirit::classic::rule< ScannerT > date
definition(DemandParser const &self)
storeDemandChangeFeeDisutility(DemandStruct &)
boost::spirit::classic::rule< ScannerT > time_value_dist
storeTimeValueProbMass(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
boost::spirit::classic::rule< ScannerT > pref_cabin
boost::spirit::classic::rule< ScannerT > demand
void operator()(iterator_t iStr, iterator_t iStrEnd) const
void operator()(double iReal) const
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storePosProbMass(DemandStruct &)
boost::spirit::classic::rule< ScannerT > trip_dist
stdair::RandomGeneration & _uniformGenerator
void operator()(unsigned int iInteger) const
void operator()(double iReal) const
boost::spirit::classic::rule< ScannerT > destination
storeFFCode(DemandStruct &)
void operator()(double iReal) const
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storeChannelCode(DemandStruct &)
boost::spirit::classic::rule< ScannerT > dtd_pair
storeStayCode(DemandStruct &)
boost::spirit::classic::rule< ScannerT > trip_pair
stdair::RandomGeneration & _uniformGenerator
void operator()(double iReal) const
storeChannelProbMass(DemandStruct &)
boost::spirit::classic::rule< ScannerT > pref_dep_date_range
void operator()(double iReal) const
boost::spirit::classic::rule< ScannerT > stay_pair
void operator()(double iReal) const
storeTripCode(DemandStruct &)
doEndDemand(SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration &, const POSProbabilityMass_T &, DemandStruct &)
storePrefDepTimeProbMass(DemandStruct &)
boost::spirit::classic::rule< ScannerT > stay_share
boost::spirit::classic::rule< ScannerT > pos_pair
boost::spirit::classic::file_iterator< char_t > iterator_t
storeDemandStdDev(DemandStruct &)
storeDemandNonRefundableProb(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
boost::spirit::classic::rule< ScannerT > channel_pair
SEVMGR::SEVMGR_ServicePtr_T _sevmgrServicePtr
boost::spirit::classic::rule< ScannerT > trip_share
void operator()(double iReal) const
storePrefDepDateRangeStart(DemandStruct &)
boost::spirit::classic::rule< ScannerT > ff_pair
storeDestination(DemandStruct &)
boost::spirit::classic::rule< ScannerT > time_value_share
boost::spirit::classic::rule< ScannerT > pos_share
void operator()(double iReal) const
boost::spirit::classic::rule< ScannerT > pref_dep_time_share
void operator()(double iReal) const
boost::spirit::classic::rule< ScannerT > wtp
void operator()(iterator_t iStr, iterator_t iStrEnd) const
boost::spirit::classic::rule< ScannerT > pref_dep_time_pair
boost::spirit::classic::rule< ScannerT > time_value_pair
void operator()(double iReal) const
boost::spirit::classic::rule< ScannerT > dtd_share
DemandFileParser(SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration &, const POSProbabilityMass_T &, const stdair::Filename_T &iDemandInputFilename)
storeTimeValue(DemandStruct &)
storePrefDepDateRangeEnd(DemandStruct &)
boost::spirit::classic::rule< ScannerT > pos_dist
boost::spirit::classic::rule< ScannerT > time
void operator()(double iReal) const
boost::spirit::classic::rule< ScannerT > non_refundable
void operator()(double iReal) const
boost::spirit::classic::rule< ScannerT > pref_dep_time_dist
storeDemandChangeFeeProb(DemandStruct &)
boost::spirit::classic::rule< ScannerT > trip_code
boost::spirit::classic::rule< ScannerT > change_fees
boost::spirit::classic::rule< ScannerT > not_to_be_parsed
void operator()(double iReal) const
storeDTDProbMass(DemandStruct &)
void operator()(double iReal) const
storeFFProbMass(DemandStruct &)
void operator()(double iReal) const
storePrefDepTime(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
storeDemandNonRefundableDisutility(DemandStruct &)
boost::spirit::classic::rule< ScannerT > ff_share
boost::spirit::classic::rule< ScannerT > channel_dist
void operator()(double iReal) const
boost::spirit::classic::rule< ScannerT > channel_share
const POSProbabilityMass_T & _posProbabilityMass
boost::spirit::classic::rule< ScannerT > origin
ParserSemanticAction(DemandStruct &)
DemandParser(SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration &, const POSProbabilityMass_T &, DemandStruct &)
storeOrigin(DemandStruct &)
boost::spirit::classic::rule< ScannerT > demand_end
void operator()(iterator_t iStr, iterator_t iStrEnd) const
void operator()(iterator_t iStr, iterator_t iStrEnd) const
void operator()(iterator_t iStr, iterator_t iStrEnd) const
boost::spirit::classic::rule< ScannerT > demand_params
storePrefCabin(DemandStruct &)
storePosCode(DemandStruct &)
const POSProbabilityMass_T & _posProbabilityMass
boost::spirit::classic::rule< ScannerT > const & start() const
SEVMGR::SEVMGR_ServicePtr_T _sevmgrServicePtr
storeDemandMean(DemandStruct &)
boost::spirit::classic::rule< ScannerT > channel_code
boost::spirit::classic::rule< ScannerT > dow
storeTripProbMass(DemandStruct &)
storeStayProbMass(DemandStruct &)
void operator()(iterator_t iStr, iterator_t iStrEnd) const
boost::spirit::classic::rule< ScannerT > stay_dist
boost::spirit::classic::rule< ScannerT > dtd_dist
void operator()(unsigned int iInteger) const
boost::spirit::classic::rule< ScannerT > ff_code
boost::spirit::classic::rule< ScannerT > pos_code
boost::spirit::classic::rule< ScannerT > ff_dist
boost::spirit::classic::rule< ScannerT > demand_list
void operator()(iterator_t iStr, iterator_t iStrEnd) const