36 #ifndef UAVOBJECTMANAGER_H
37 #define UAVOBJECTMANAGER_H
55 QVector<QVector<UAVObject *>> getObjectsVector();
56 QHash<quint32, QMap<quint32, UAVObject *>> getObjects();
57 QVector<QVector<UAVDataObject *>> getDataObjectsVector();
58 QVector<QVector<UAVMetaObject *>> getMetaObjectsVector();
59 UAVObject *getObject(
const QString &name, quint32 instId = 0);
60 UAVObject *getObject(quint32 objId, quint32 instId = 0);
69 UAVObjectField *getField(
const QString &objName,
const QString &fieldName, quint32 instId = 0);
70 QVector<UAVObject *> getObjectInstancesVector(
const QString &name);
71 QVector<UAVObject *> getObjectInstancesVector(quint32 objId);
72 qint32 getNumInstances(
const QString &name);
73 qint32 getNumInstances(quint32 objId);
81 static const quint32 MAX_INSTANCES = 1000;
82 QHash<quint32, QMap<quint32, UAVObject *>> objects;
83 QHash<QString, QMap<quint32, UAVObject *>> objectsByName;
86 UAVObject *getObject(
const QString &name, quint32 objId, quint32 instId);
87 QVector<UAVObject *> getObjectInstancesVector(
const QString *name, quint32 objId);
88 qint32 getNumInstances(
const QString *name, quint32 objId);
91 #endif // UAVOBJECTMANAGER_H
QMap< quint32, UAVObject * > ObjectMap