|
|
|
|
#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 double& f);
|
|
|
|
|
double getFlowRatePrev() const;
|
|
|
|
|
void setPresValueL(const double& f);
|
|
|
|
|
double getPresValueL() const;
|
|
|
|
|
void setPresValueR(const double& f);
|
|
|
|
|
double getPresValueR() const;
|
|
|
|
|
void setTimeL(const double& f);
|
|
|
|
|
double getTimeL() const;
|
|
|
|
|
void setTimeR(const double& f);
|
|
|
|
|
double getTimeR() const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
// QString m_sRstID; //成果编码
|
|
|
|
|
// QString m_sSegName;
|
|
|
|
|
int m_nSegType; //类型:0:压恢 1:压降
|
|
|
|
|
double m_fFlowRatePrev;
|
|
|
|
|
double m_fPresValueL;
|
|
|
|
|
double m_fPresValueR;
|
|
|
|
|
double m_fTimeL;
|
|
|
|
|
double m_fTimeR;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|