Ref T259, Ref T243 misc. smaller improvements of simulator environment provider

This commit is contained in:
Klaus Basan
2018-03-22 16:49:29 +01:00
parent 4ec3a76ed4
commit bb34beed26
2 changed files with 44 additions and 8 deletions

View File

@@ -52,29 +52,39 @@ namespace BlackMisc
CAircraftModel getDefaultModel() const;
//! Get CG per callsign, NULL if not found
//! \threadsafe
PhysicalQuantities::CLength getCG(const Aviation::CCallsign &callsign) const;
//! Has a CG?
//! \threadsafe
bool hasCG(const Aviation::CCallsign &callsign) const;
//! Has the same CG?
//! \threadsafe
bool hasSameCG(const PhysicalQuantities::CLength &cg, const Aviation::CCallsign &callsign) const;
protected:
//! Ctor
ISimulationEnvironmentProvider(const CSimulatorPluginInfo &pluginInfo);
//! New plugin info and default model
//! \remark normally only used by emulated driver
//! \threadsafe
void setNewPluginInfo(const CSimulatorPluginInfo &info, const CAircraftModel &defaultModel);
//! Default model
//! \threadsafe
void setDefaultModel(const CAircraftModel &defaultModel);
//! Clear default model
//! \threadsafe
void clearDefaultModel();
//! Clear elevations
void clearElevations();
//! Clear CGs
//! \threadsafe
void clearCGs();
//! Clear data
@@ -102,6 +112,9 @@ namespace BlackMisc
//! \threadsafe
int removeCG(const Aviation::CCallsign &cs);
//! Min.range considered as single point
static PhysicalQuantities::CLength minRange(const PhysicalQuantities::CLength &range);
static constexpr int MaxElevations = 1000; //!< How many elevations we keep
private: