Ejemplo n.º 1
0
  void Visit(const AirspaceWarning& as) {
    if (as.GetWarningState() == AirspaceWarning::WARNING_INSIDE) {
      ids_inside.checked_append(&as.GetAirspace());
    } else if (as.GetWarningState() > AirspaceWarning::WARNING_CLEAR) {
      ids_warning.checked_append(&as.GetAirspace());
      locations.checked_append(as.GetSolution().location);
    }

    if (!as.IsAckExpired())
      ids_acked.checked_append(&as.GetAirspace());
  }
Ejemplo n.º 2
0
 WarningItem(const AirspaceWarning &warning)
   :airspace(&warning.GetAirspace()),
    state(warning.GetWarningState()),
    solution(warning.GetSolution()),
    ack_expired(warning.IsAckExpired()), ack_day(warning.GetAckDay()) {}
Ejemplo n.º 3
0
 void Add(const AirspaceWarning& as) {
   if (as.GetWarningState() > AirspaceWarning::WARNING_CLEAR)
     list.checked_append(&as.GetAirspace());
 }
Ejemplo n.º 4
0
 void Add(const AirspaceWarning& as) {
   if (as.GetWarningState() == AirspaceWarning::WARNING_INSIDE)
     ids_inside.checked_append(&as.GetAirspace());
   else if (as.GetWarningState() > AirspaceWarning::WARNING_CLEAR)
     ids_warning.checked_append(&as.GetAirspace());
 }