1
0
Fork 0
flightgear/src/AIModel/performancedb.hxx
durk 1613d7e63e Thomas Foerster: Prepare for the inclusion of aircraft specific performance
data for AI traffic. Default performance classes are still available as a
backup. This database will allow the calculation of aircraft-specific
take-off speed and estimate runway lenght requirements. Further added
rudimentary support for take-off and landing rotation of AIAircraft.
2007-06-28 07:47:20 +00:00

33 lines
723 B
C++

#ifndef PERFORMANCEDB_HXX
#define PERFORMANCEDB_HXX
#include <string>
#include <map>
#include "performancedata.hxx"
/**
* Registry for performance data.
*
* Allows to store performance data for later reuse/retrieval. Just
* a simple map for now.
*
* @author Thomas Förster <t.foerster@biologie.hu-berlin.de>
*/
//TODO provide std::map interface?
class PerformanceDB
{
public:
PerformanceDB();
~PerformanceDB();
void registerPerformanceData(const std::string& id, PerformanceData* data);
void registerPerformanceData(const std::string& id, const std::string& filename);
PerformanceData* getDataFor(const std::string& id);
private:
std::map<std::string, PerformanceData*> _db;
};
#endif