mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Fixed missing JSON methods
This commit is contained in:
@@ -79,6 +79,21 @@ namespace BlackMisc
|
||||
argument >> TupleConverter<CFlightPlan>::toTuple(*this);
|
||||
}
|
||||
|
||||
const QStringList &CFlightPlan::jsonMembers()
|
||||
{
|
||||
return TupleConverter<CFlightPlan>::jsonMembers();
|
||||
}
|
||||
|
||||
QJsonObject CFlightPlan::toJson() const
|
||||
{
|
||||
return BlackMisc::serializeJson(CFlightPlan::jsonMembers(), TupleConverter<CFlightPlan>::toTuple(*this));
|
||||
}
|
||||
|
||||
void CFlightPlan::fromJson(const QJsonObject &json)
|
||||
{
|
||||
BlackMisc::deserializeJson(json, CFlightPlan::jsonMembers(), TupleConverter<CFlightPlan>::toTuple(*this));
|
||||
}
|
||||
|
||||
void CFlightPlan::registerMetadata()
|
||||
{
|
||||
qRegisterMetaType<CFlightPlan>();
|
||||
|
||||
Reference in New Issue
Block a user