refs #356 Update remaining CValueObject derived classes to use CValueObjectStdTuple instead.

This commit is contained in:
Mathew Sutcliffe
2015-03-16 18:38:03 +00:00
parent 2a3e0acf23
commit a5e6b31c0f
7 changed files with 61 additions and 235 deletions

View File

@@ -27,12 +27,16 @@ namespace BlackMisc
// forward declaration
class CPropertyIndex;
class CPropertyIndexList;
class CPropertyIndexVariantMap;
//! \private
template <> struct CValueObjectStdTuplePolicy<CPropertyIndexVariantMap> : public CValueObjectLegacy {};
/*!
* Specialized value object compliant map for variants,
* based on indexes
*/
class CPropertyIndexVariantMap : public CValueObject
class CPropertyIndexVariantMap : public CValueObjectStdTuple<CPropertyIndexVariantMap>
{
public:
@@ -155,12 +159,6 @@ namespace BlackMisc
//! \copydoc CValueObject::getMetaTypeId
virtual int getMetaTypeId() const override;
//! \copydoc CValueObject::isA
virtual bool isA(int metaTypeId) const override;
//! \copydoc CValueObject::compareImpl
virtual int compareImpl(const CValueObject &other) const override;
//! \copydoc CValueObject::marshallToDbus
virtual void marshallToDbus(QDBusArgument &argument) const override;