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/ZxDataPvtData.h

64 lines
1.5 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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; //过程数据
};