mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
refs #356 Renamed CValueObjectStdTuple to CValueObject.
This commit is contained in:
@@ -19,7 +19,7 @@ namespace BlackMisc
|
||||
namespace Aviation
|
||||
{
|
||||
//! Value object encapsulating information about aircraft's engines
|
||||
class CAircraftEngine : public CValueObjectStdTuple<CAircraftEngine>
|
||||
class CAircraftEngine : public CValueObject<CAircraftEngine>
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace BlackMisc
|
||||
case IndexTaxi:
|
||||
return CVariant::from(m_taxiOn);
|
||||
default:
|
||||
return CValueObjectStdTuple::propertyByIndex(index);
|
||||
return CValueObject::propertyByIndex(index);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace BlackMisc
|
||||
this->m_taxiOn = variant.toBool();
|
||||
break;
|
||||
default:
|
||||
CValueObjectStdTuple::setPropertyByIndex(variant, index);
|
||||
CValueObject::setPropertyByIndex(variant, index);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace BlackMisc
|
||||
namespace Aviation
|
||||
{
|
||||
//! Value object encapsulating information about aircraft's lights
|
||||
class CAircraftLights : public CValueObjectStdTuple<CAircraftLights>
|
||||
class CAircraftLights : public CValueObject<CAircraftLights>
|
||||
{
|
||||
public:
|
||||
//! Properties by index
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace BlackMisc
|
||||
case IndexSpoilersOut:
|
||||
return CVariant::fromValue(this->m_spoilersOut);
|
||||
default:
|
||||
return CValueObjectStdTuple::propertyByIndex(index);
|
||||
return CValueObject::propertyByIndex(index);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace BlackMisc
|
||||
this->m_correspondingCallsign.setPropertyByIndex(variant, index.copyFrontRemoved());
|
||||
break;
|
||||
default:
|
||||
CValueObjectStdTuple::setPropertyByIndex(variant, index);
|
||||
CValueObject::setPropertyByIndex(variant, index);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace BlackMisc
|
||||
{
|
||||
//! Value object encapsulating information of aircraft's parts
|
||||
class CAircraftParts :
|
||||
public CValueObjectStdTuple<CAircraftParts>,
|
||||
public CValueObject<CAircraftParts>,
|
||||
public BlackMisc::ITimestampBased
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user