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 {
91 void operator() (
double iReal)
const;
99 void operator() (
double iReal)
const;
107 void operator() (
double iReal)
const;
115 void operator() (
double iReal)
const;
123 void operator() (
double iReal)
const;
131 void operator() (
double iReal)
const;
147 void operator() (
double iReal)
const;
163 void operator() (
double iReal)
const;
179 void operator() (
double iReal)
const;
187 void operator() (
unsigned int iInteger)
const;
195 void operator() (
double iReal)
const;
211 void operator() (
double iReal)
const;
229 void operator() (
double iReal)
const;
237 void operator() (
double iReal)
const;
245 void operator() (
double iReal)
const;
253 void operator() (
double iReal)
const;
262 void operator() (
unsigned int iInteger)
const;
271 void operator() (
double iReal)
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>
395 boost::spirit::classic::rule<ScannerT> demand_list,
396 not_to_be_parsed, demand, demand_end, pref_dep_date_range,
397 date, dow, origin, destination, pref_cabin, demand_params,
398 pos_dist, pos_pair, pos_code, pos_share,
399 channel_dist, channel_pair, channel_code, channel_share,
400 trip_dist, trip_pair, trip_code, trip_share,
401 stay_dist, stay_pair, stay_share,
402 ff_dist, ff_pair, ff_code, ff_share,
405 pref_dep_time_dist, pref_dep_time_pair, pref_dep_time_share, time,
407 time_value_dist, time_value_pair, time_value_share,
408 dtd_dist, dtd_pair, dtd_share;
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
stdair::RandomGeneration & _uniformGenerator
boost::spirit::classic::rule< ScannerT > wtp
boost::spirit::classic::file_iterator< char_t > iterator_t
stdair::RandomGeneration & _uniformGenerator
SEVMGR::SEVMGR_ServicePtr_T _sevmgrServicePtr
const POSProbabilityMass_T & _posProbabilityMass
const POSProbabilityMass_T & _posProbabilityMass
SEVMGR::SEVMGR_ServicePtr_T _sevmgrServicePtr
void generateDemand(TRADEMGEN::TRADEMGEN_Service &ioTrademgenService, const stdair::Filename_T &iOutputFilename, const NbOfRuns_T &iNbOfRuns, const stdair::DemandGenerationMethod &iDemandGenerationMethod)