You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "ZxDataObjectEx.h"
|
|
|
|
|
|
|
|
|
|
// DataObjectBin
|
|
|
|
|
class M_PROJECTMANAGER_EXPORT ZxDataObjectBin
|
|
|
|
|
: public ZxDataObjectEx
|
|
|
|
|
{
|
|
|
|
|
// ZX_DECLARE_DYNAMIC
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
ZxDataObjectBin(ZxDataObject *pParent);
|
|
|
|
|
ZxDataObjectBin(const ZxDataObjectBin& other);
|
|
|
|
|
virtual ~ZxDataObjectBin();
|
|
|
|
|
|
|
|
|
|
ZxDataObjectBin &operator = (const ZxDataObjectBin& other);
|
|
|
|
|
bool operator == (const ZxDataObjectBin& other) const;
|
|
|
|
|
bool operator != (const ZxDataObjectBin& other) const;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// 接口
|
|
|
|
|
virtual ZxDataObject* clone();
|
|
|
|
|
|
|
|
|
|
// 20240604为了方便,新增内部解析
|
|
|
|
|
virtual bool _parseData(VecVariant vec, int& n);
|
|
|
|
|
virtual bool _sumUpData(VecVariant& vec);
|
|
|
|
|
|
|
|
|
|
// 序列化
|
|
|
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
|
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
void setExt1(const QByteArray& s);
|
|
|
|
|
QByteArray getExt1() const;
|
|
|
|
|
void setExt2(const QByteArray& s);
|
|
|
|
|
QByteArray getExt2() const;
|
|
|
|
|
void setExt3(const QByteArray& s);
|
|
|
|
|
QByteArray getExt3() const;
|
|
|
|
|
void setExt4(const QByteArray& s);
|
|
|
|
|
QByteArray getExt4() const;
|
|
|
|
|
void setExt5(const QByteArray& s);
|
|
|
|
|
QByteArray getExt5() const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
QByteArray m_baExt1;
|
|
|
|
|
QByteArray m_baExt2;
|
|
|
|
|
QByteArray m_baExt3;
|
|
|
|
|
QByteArray m_baExt4;
|
|
|
|
|
QByteArray m_baExt5;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|