void MissionStack::load(gzFile file) { sMission.clear(); while (gzgetc(file)) { add(Mission()); sMission.back().load(file); } }
// Default constructor for AOI, Initializes Mission List and Sensor list as well AOI::AOI(int num_sensor_input, int num_mission_input, int mission_duration, int mission_req_sensors) { // initialize AOI specific variables aoi_size = AOI_SIZE; num_sensor = num_sensor_input; num_mission = num_mission_input; // initialize Sensors for (int i = 0; i < num_sensor; i++) { s_list.push_back(Sensor(i, aoi_size)); } // initialize Missions for (int i = 0; i < num_mission; i++) { m_list.push_back(Mission(aoi_size, mission_duration, mission_req_sensors)); } }