Files
pilotclient/src/blackmisc/aviobase.cpp
Klaus Basan 34320ad3e1 refs #140, changed CValueObject classes to tupel concept
Remarks: Changes looking like an added file result from the shift of namespace voice -> audio
2014-03-10 14:48:56 +01:00

35 lines
1.1 KiB
C++

#include "aviobase.h"
namespace BlackMisc
{
namespace Aviation
{
bool CAvionicsBase::operator ==(const CAvionicsBase &other) const
{
if (this == &other) return true;
return TupleConverter<CAvionicsBase>::toTuple(*this) == TupleConverter<CAvionicsBase>::toTuple(other);
}
int CAvionicsBase::compareImpl(const CValueObject &otherBase) const
{
const auto &other = static_cast<const CAvionicsBase &>(otherBase);
return compare(TupleConverter<CAvionicsBase>::toTuple(*this), TupleConverter<CAvionicsBase>::toTuple(other));
}
void CAvionicsBase::marshallToDbus(QDBusArgument &argument) const
{
argument << TupleConverter<CAvionicsBase>::toTuple(*this);
}
void CAvionicsBase::unmarshallFromDbus(const QDBusArgument &argument)
{
argument >> TupleConverter<CAvionicsBase>::toTuple(*this);
}
uint CAvionicsBase::getValueHash() const
{
return qHash(TupleConverter<CAvionicsBase>::toTuple(*this));
}
}
}