7#include <QtCore/QJsonObject>
29 static bool DeReferenceObject(
30 const QJsonObject& jsonObject,
31 const QJsonObject& lookUpjsonObject,
33 bool* isReferencePtr =
nullptr);
42 static QJsonObject FindSecuritySchemeByName(
43 const QString& schemeName,
44 const QJsonObject& lookUpjsonObject);
54 static bool ExtractItemsFromObject(QList<_T>& container,
const QJsonObject& objectsArray,
const QJsonObject& lookupObject);
61bool COasTools::ExtractItemsFromObject(QList<_T>& container,
const QJsonObject& objectsArray,
const QJsonObject& lookupObject)
63 for (QJsonObject::const_iterator arrayIter = objectsArray.constBegin(); arrayIter != objectsArray.constEnd(); ++arrayIter){
65 QJsonObject arrayItemObject = arrayIter->toObject();
66 if (!DeReferenceObject(arrayItemObject, lookupObject, arrayItemObject)){
69 if (!_T::ReadFromJsonObject(item, arrayItemObject, lookupObject)){
72 item.SetId(arrayIter.key());