mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Ref T259, Ref T243 improvements in interpolator
* functions for unit tests (like clear) * maxParts/Situations
This commit is contained in:
@@ -59,7 +59,11 @@ namespace BlackMisc
|
||||
bool hasAircraftSituations() const { return !m_aircraftSituations.isEmpty(); }
|
||||
|
||||
//! Add a new aircraft parts
|
||||
void addAircraftParts(const Aviation::CAircraftParts &parts);
|
||||
void addAircraftParts(const Aviation::CAircraftParts &parts, bool adjustZeroOffset = true);
|
||||
|
||||
//! Add a new aircraft parts
|
||||
//! \remark mainly needed in unit tests
|
||||
void addAircraftParts(const Aviation::CAircraftPartsList &parts, bool adjustZeroOffset = true);
|
||||
|
||||
//! Any aircraft parts?
|
||||
bool hasAircraftParts() const { return !m_aircraftParts.isEmpty(); }
|
||||
@@ -89,6 +93,16 @@ namespace BlackMisc
|
||||
//! \remark mainly needed in UNIT tests
|
||||
void resetLastInterpolation();
|
||||
|
||||
//! Clear all data
|
||||
//! \remark mainly needed in interpolation
|
||||
void clear();
|
||||
|
||||
//! Max situations kept
|
||||
int maxSituations() const;
|
||||
|
||||
//! Max parts kept
|
||||
int maxParts() const;
|
||||
|
||||
protected:
|
||||
Aviation::CAircraftSituationList m_aircraftSituations; //!< recent situations for one aircraft
|
||||
Aviation::CAircraftPartsList m_aircraftParts; //!< recent parts for one aircraft
|
||||
|
||||
Reference in New Issue
Block a user