FlightGear next
PerformanceDB Class Reference

Registry for performance data. More...

#include <performancedb.hxx>

Inherits SGSubsystem.

Public Member Functions

 PerformanceDB ()=default
 
virtual ~PerformanceDB ()=default
 
void init () override
 
void shutdown () override
 
void update (double dt) override
 
bool havePerformanceDataForAircraftType (const std::string &acType) const
 
PerformanceDatagetDataFor (const std::string &acType, const std::string &acClass) const
 get performance data for an aircraft type / class.
 
PerformanceDatagetDefaultPerformance () const
 

Static Public Member Functions

static const char * staticSubsystemClassId ()
 

Detailed Description

Registry for performance data.

Allows to store performance data for later reuse/retrieval. Just a simple map for now.

Author
Thomas F�rster t.foe.nosp@m.rste.nosp@m.r@bio.nosp@m.logi.nosp@m.e.hu-.nosp@m.berl.nosp@m.in.de

Definition at line 21 of file performancedb.hxx.

Constructor & Destructor Documentation

◆ PerformanceDB()

PerformanceDB::PerformanceDB ( )
default

◆ ~PerformanceDB()

virtual PerformanceDB::~PerformanceDB ( )
virtualdefault

Member Function Documentation

◆ getDataFor()

PerformanceData * PerformanceDB::getDataFor ( const std::string & acType,
const std::string & acClass ) const

get performance data for an aircraft type / class.

Type is specific, eg '738' or 'A319'. Class is more generic, such as 'jet_transport'.

Definition at line 56 of file performancedb.cxx.

◆ getDefaultPerformance()

PerformanceData * PerformanceDB::getDefaultPerformance ( ) const

Definition at line 79 of file performancedb.cxx.

◆ havePerformanceDataForAircraftType()

bool PerformanceDB::havePerformanceDataForAircraftType ( const std::string & acType) const

Definition at line 88 of file performancedb.cxx.

◆ init()

void PerformanceDB::init ( )
override

Definition at line 21 of file performancedb.cxx.

◆ shutdown()

void PerformanceDB::shutdown ( )
override

Definition at line 33 of file performancedb.cxx.

◆ staticSubsystemClassId()

static const char * PerformanceDB::staticSubsystemClassId ( )
inlinestatic

Definition at line 33 of file performancedb.hxx.

◆ update()

void PerformanceDB::update ( double dt)
override

Definition at line 44 of file performancedb.cxx.


The documentation for this class was generated from the following files: