Beispiel #1
0
static void
PrintAirspaceWarnings(const char *path,
                      const AirspaceWarningManager &warnings,
                      const AirspaceWarning::State state)
{
    std::ofstream fout(path);

    for (auto i = warnings.begin(), end = warnings.end(); i != end; ++i) {
        const AirspaceWarning &warning = *i;
        if (warning.GetWarningState() == state) {
            fout << warning;
            fout << warning.GetAirspace();
        }
    }
}
Beispiel #2
0
  void Visit(const AirspaceWarningManager &awm) {
    serial = awm.GetSerial();

    for (auto i = awm.begin(), end = awm.end(); i != end; ++i)
      Visit(*i);
  }
Beispiel #3
0
 void Fill(const AirspaceWarningManager &awm) {
   for (auto i = awm.begin(), end = awm.end(); i != end; ++i)
     Add(*i);
 }