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