|
|
#pragma once
|
|
|
|
|
|
#include "ZxDataObjectBin.h"
|
|
|
|
|
|
// ZxDataPvtData:存储PVT相关的数据信息,与PvtInfo关联
|
|
|
class M_PROJECTMANAGER_EXPORT ZxDataPvtData
|
|
|
: public ZxDataObjectBin
|
|
|
{
|
|
|
ZX_DECLARE_DYNAMIC
|
|
|
|
|
|
public:
|
|
|
|
|
|
ZxDataPvtData();
|
|
|
ZxDataPvtData(const ZxDataPvtData &other);
|
|
|
virtual ~ZxDataPvtData();
|
|
|
|
|
|
ZxDataPvtData &operator = (const ZxDataPvtData &other);
|
|
|
bool operator == (const ZxDataPvtData &other) const;
|
|
|
bool operator != (const ZxDataPvtData &other) const;
|
|
|
|
|
|
public:
|
|
|
|
|
|
// 接口
|
|
|
virtual ZxDataObject* clone();
|
|
|
virtual QString type() const;
|
|
|
|
|
|
// 加载保存
|
|
|
virtual bool _parseData(VecVariant vec, int& n); //解析
|
|
|
virtual bool _sumUpData(VecVariant& vec);
|
|
|
|
|
|
// 序列化
|
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
|
|
// Icon
|
|
|
virtual QIcon getIcon(bool expanded) const;
|
|
|
|
|
|
public:
|
|
|
|
|
|
// PvtInfoID
|
|
|
void setPvtID(const QString& s);
|
|
|
QString getPvtID() const;
|
|
|
|
|
|
void setMethodName(const QString& s);
|
|
|
QString getMethodName() const;
|
|
|
void setFixedPosX(const double& f);
|
|
|
double getFixedPosX() const;
|
|
|
void setFixedPosY(const double& f);
|
|
|
double getFixedPosY() const;
|
|
|
|
|
|
// 过程数据
|
|
|
void setProcData(const QByteArray& ba);
|
|
|
QByteArray getProcData() const;
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
QString m_sPvtID; //PvtInfo编码
|
|
|
QString m_sMethodName; //选用方法
|
|
|
double m_fFixedPosX; //x轴数值
|
|
|
double m_fFixedPosY; //y轴数值
|
|
|
QByteArray m_baProcData; //过程数据
|
|
|
};
|