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

74 lines
1.6 KiB
C

#pragma once
#include "ZxDataObjectStr.h"
// RstJobSeg
class M_PROJECTMANAGER_EXPORT ZxRstJobSeg
: public ZxDataObjectStr
{
ZX_DECLARE_DYNAMIC
public:
ZxRstJobSeg();
ZxRstJobSeg(const ZxRstJobSeg &other);
virtual ~ZxRstJobSeg();
ZxRstJobSeg &operator = (const ZxRstJobSeg &other);
bool operator == (const ZxRstJobSeg &other) const;
bool operator != (const ZxRstJobSeg &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:
// // 成果ID
// void setRstID(const QString& sRstID);
// QString getRstID() const;
// void setSegName(const QString& s);
// QString getSegName() const;
void setSegType(const int& n);
int getSegType() const;
void setFlowRatePrev(const float& f);
float getFlowRatePrev() const;
void setPresValueL(const float& f);
float getPresValueL() const;
void setPresValueR(const float& f);
float getPresValueR() const;
void setTimeL(const float& f);
float getTimeL() const;
void setTimeR(const float& f);
float getTimeR() const;
protected:
// QString m_sRstID; //成果编码
// QString m_sSegName;
int m_nSegType; //类型0压恢 1压降
float m_fFlowRatePrev;
float m_fPresValueL;
float m_fPresValueR;
float m_fTimeL;
float m_fTimeR;
};