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.
nmWATI/Include/mData/mProjectManager/DataModels/ZxDataObjectStr.h

59 lines
1.2 KiB
C

#pragma once
#include "ZxDataObjectEx.h"
// DataObjectStr
class M_PROJECTMANAGER_EXPORT ZxDataObjectStr
: public ZxDataObjectEx
{
// ZX_DECLARE_DYNAMIC
public:
ZxDataObjectStr(ZxDataObject *pParent);
ZxDataObjectStr(const ZxDataObjectStr& other);
virtual ~ZxDataObjectStr();
ZxDataObjectStr &operator = (const ZxDataObjectStr& other);
bool operator == (const ZxDataObjectStr& other) const;
bool operator != (const ZxDataObjectStr& 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 QString& s);
QString getExt1() const;
void setExt2(const QString& s);
QString getExt2() const;
void setExt3(const QString& s);
QString getExt3() const;
void setExt4(const QString& s);
QString getExt4() const;
void setExt5(const QString& s);
QString getExt5() const;
protected:
QString m_sExt1;
QString m_sExt2;
QString m_sExt3;
QString m_sExt4;
QString m_sExt5;
};