6 #include <boost/property_tree/ptree.hpp> 7 #include <boost/property_tree/xml_parser.hpp> 17 using uint =
unsigned int;
20 Flight(
string source_sim,
string destination_sim,
uint amount,
uint duration,
uint day_of_the_week,
string district,
22 : m_source_sim(source_sim),
23 m_destination_sim(destination_sim),
26 m_day_of_the_week(day_of_the_week),
28 m_facility(facility) {}
49 Schedule readSchedule(
string filename);
52 void parseTree(
string filename);
54 Flight parseFlight(boost::property_tree::ptree& node)
const;
56 boost::property_tree::ptree
m_pt;
string m_district
The current day of the week (0 (Sunday), ..., 6 (Saturday))
Time Dependent Person DataType.
bool operator==(const Flight &flight1, const Flight &flight2)
array< vector< Flight >, 7 > Schedule
boost::property_tree::ptree m_pt
Flight(string source_sim, string destination_sim, uint amount, uint duration, uint day_of_the_week, string district, string facility)