mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
refs #614, changed matcher so caches can be used
* provider for cached models * removed unused dummy * renamed getDatastoreModels
This commit is contained in:
@@ -34,11 +34,10 @@ namespace BlackMisc
|
||||
bool success = this->m_vPilotReader->read(false);
|
||||
if (success)
|
||||
{
|
||||
this->m_datastoreModels = this->m_vPilotReader->getAsModels();
|
||||
this->m_mappingModels = this->m_vPilotReader->getAsModels();
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
@@ -34,12 +34,16 @@ namespace BlackMisc
|
||||
//! Destructor
|
||||
virtual ~CModelMappingsProviderVPilot() {}
|
||||
|
||||
//! \copydoc IModelMappingsProvider::getMatchingModels
|
||||
virtual CAircraftModelList getMatchingModels() const override { return this->m_mappingModels; }
|
||||
|
||||
public slots:
|
||||
//! Load data
|
||||
virtual bool read() override;
|
||||
|
||||
private:
|
||||
QScopedPointer<CVPilotRulesReader> m_vPilotReader; //!< used vPilot model reader
|
||||
QScopedPointer<CVPilotRulesReader> m_vPilotReader; //!< used vPilot model reader
|
||||
BlackMisc::Simulation::CAircraftModelList m_mappingModels; //!< models
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user