mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-13 20:48:42 +01:00
29 lines
615 B
C
29 lines
615 B
C
|
#ifndef UAVMETAOBJECT_H
|
||
|
#define UAVMETAOBJECT_H
|
||
|
|
||
|
#include "UAVObject.h"
|
||
|
|
||
|
class UAVMetaObject: public UAVObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
UAVMetaObject(quint32 objID, QString& name, Metadata& mdata, UAVObject* parent);
|
||
|
UAVObject* getParentObject();
|
||
|
|
||
|
qint32 pack(quint8* dataOut);
|
||
|
qint32 unpack(const quint8* dataIn);
|
||
|
void setMetadata(const Metadata& mdata);
|
||
|
Metadata getMetadata();
|
||
|
void setData(const Metadata& mdata);
|
||
|
Metadata getData();
|
||
|
|
||
|
private:
|
||
|
UAVObject* parent;
|
||
|
Metadata ownMetadata;
|
||
|
Metadata parentMetadata;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // UAVMETAOBJECT_H
|