mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
@@ -52,6 +52,12 @@ namespace BlackMisc
|
|||||||
//! Constructor
|
//! Constructor
|
||||||
CCloudLayer(BlackMisc::Aviation::CAltitude ceiling, Coverage coverage);
|
CCloudLayer(BlackMisc::Aviation::CAltitude ceiling, Coverage coverage);
|
||||||
|
|
||||||
|
//! Set base
|
||||||
|
void setBase(const BlackMisc::Aviation::CAltitude &base) { m_base = base; }
|
||||||
|
|
||||||
|
//! Get base
|
||||||
|
BlackMisc::Aviation::CAltitude getBase() const { return m_base; }
|
||||||
|
|
||||||
//! Set ceiling
|
//! Set ceiling
|
||||||
void setCeiling(BlackMisc::Aviation::CAltitude ceiling) { m_ceiling = ceiling; }
|
void setCeiling(BlackMisc::Aviation::CAltitude ceiling) { m_ceiling = ceiling; }
|
||||||
|
|
||||||
@@ -64,6 +70,12 @@ namespace BlackMisc
|
|||||||
//! Get coverage
|
//! Get coverage
|
||||||
Coverage getCoverage() const { return m_coverage; }
|
Coverage getCoverage() const { return m_coverage; }
|
||||||
|
|
||||||
|
//! Set coverage in %
|
||||||
|
void setCoveragePercent(int coverage) { m_coveragePercent = coverage; }
|
||||||
|
|
||||||
|
//! Get coverage in %
|
||||||
|
int getCoveragePercent() const { return m_coveragePercent; }
|
||||||
|
|
||||||
//! \copydoc CValueObject::propertyByIndex
|
//! \copydoc CValueObject::propertyByIndex
|
||||||
CVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const;
|
CVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const;
|
||||||
|
|
||||||
@@ -75,8 +87,10 @@ namespace BlackMisc
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
BLACK_ENABLE_TUPLE_CONVERSION(CCloudLayer)
|
BLACK_ENABLE_TUPLE_CONVERSION(CCloudLayer)
|
||||||
|
BlackMisc::Aviation::CAltitude m_base;
|
||||||
BlackMisc::Aviation::CAltitude m_ceiling;
|
BlackMisc::Aviation::CAltitude m_ceiling;
|
||||||
Coverage m_coverage;
|
Coverage m_coverage;
|
||||||
|
int m_coveragePercent;
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
Reference in New Issue
Block a user