mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #345 Third and final wave of value classes using the CValueObjectStdTuple CRTP class template, with policy classes.
This commit is contained in:
@@ -122,19 +122,6 @@ namespace BlackMisc
|
||||
argument >> this->m_unit;
|
||||
}
|
||||
|
||||
/*
|
||||
* Register metatype
|
||||
*/
|
||||
template <class MU, class PQ>void CPhysicalQuantity<MU, PQ>::registerMetadata()
|
||||
{
|
||||
qRegisterMetaType<MU>();
|
||||
qDBusRegisterMetaType<MU>();
|
||||
qDBusRegisterMetaType<QList<MU> >();
|
||||
qRegisterMetaType<PQ>();
|
||||
qDBusRegisterMetaType<PQ>();
|
||||
qDBusRegisterMetaType<QList<PQ> >();
|
||||
}
|
||||
|
||||
/*
|
||||
* Multiply operator
|
||||
*/
|
||||
@@ -360,23 +347,6 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* metaTypeId
|
||||
*/
|
||||
template <class MU, class PQ> int CPhysicalQuantity<MU, PQ>::getMetaTypeId() const
|
||||
{
|
||||
return qMetaTypeId<PQ>();
|
||||
}
|
||||
|
||||
/*
|
||||
* is a
|
||||
*/
|
||||
template <class MU, class PQ> bool CPhysicalQuantity<MU, PQ>::isA(int metaTypeId) const
|
||||
{
|
||||
if (metaTypeId == qMetaTypeId<PQ>()) { return true; }
|
||||
return this->CValueObject::isA(metaTypeId);
|
||||
}
|
||||
|
||||
/*
|
||||
* Compare
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user