mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
refs #345 Second wave of value classes using the CValueObjectStdTuple CRTP class template, with inheritance.
This commit is contained in:
@@ -19,7 +19,7 @@ namespace BlackMisc
|
||||
namespace Aviation
|
||||
{
|
||||
//! NAV system (radio navigation)
|
||||
class CNavSystem : public CModulator<CNavSystem>
|
||||
class CNavSystem : public CValueObjectStdTuple<CNavSystem, CModulator<CNavSystem>>
|
||||
{
|
||||
public:
|
||||
//! Default constructor
|
||||
@@ -27,7 +27,7 @@ namespace BlackMisc
|
||||
|
||||
//! Constructor
|
||||
CNavSystem(const QString &name, const BlackMisc::PhysicalQuantities::CFrequency &activeFrequency, const BlackMisc::PhysicalQuantities::CFrequency &standbyFrequency):
|
||||
CModulator(name, activeFrequency, standbyFrequency)
|
||||
CValueObjectStdTuple(name, activeFrequency, standbyFrequency)
|
||||
{ }
|
||||
|
||||
//! Set active frequency
|
||||
@@ -42,18 +42,6 @@ namespace BlackMisc
|
||||
this->CModulator::setFrequencyStandbyMHz(frequencyMHz);
|
||||
}
|
||||
|
||||
//! Equal operator ==
|
||||
bool operator ==(const CNavSystem &other) const
|
||||
{
|
||||
return this->CModulator::operator ==(other);
|
||||
}
|
||||
|
||||
//! Unequal operator !=
|
||||
bool operator !=(const CNavSystem &other) const
|
||||
{
|
||||
return this->CModulator::operator !=(other);
|
||||
}
|
||||
|
||||
//! Valid civil aviation frequency?
|
||||
static bool isValidCivilNavigationFrequency(BlackMisc::PhysicalQuantities::CFrequency f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user