Esempio n. 1
0
 explicit Item(uint32_t _id, const GeoPoint &_location)
   :id(FlarmId::Undefined()), skylines_id(_id),
    color(FlarmColor::COUNT),
    loaded(false),
    location(_location),
    vector(GeoVector::Invalid()) {
   assert(IsSkyLines());
 }
Esempio n. 2
0
    explicit Item(uint32_t _id, uint32_t _time_of_day_ms,
                  const GeoPoint &_location, int _altitude,
                  std::string &&_name)
      :id(FlarmId::Undefined()), skylines_id(_id),
       time_of_day_ms(_time_of_day_ms),
       color(FlarmColor::COUNT),
       loaded(false),
       location(_location),
       vector(GeoVector::Invalid()), name(std::move(_name)),
       altitude(_altitude) {
      assert(IsSkyLines());

      near_name.clear();
    }
Esempio n. 3
0
    void Load() {
      if (IsFlarm()) {
        record = traffic_databases->flarm_net.FindRecordById(id);
        callsign = traffic_databases->FindNameById(id);
#ifdef HAVE_SKYLINES_TRACKING_HANDLER
      } else if (IsSkyLines()) {
        record = nullptr;
        callsign = nullptr;
#endif
      } else {
        gcc_unreachable();
      }

      loaded = true;
    }