#pragma once #include "ZxDataObjectDbl.h" // 流体 class M_PROJECTMANAGER_EXPORT ZxDataFluid : public ZxDataObjectDbl { ZX_DECLARE_DYNAMIC public: ZxDataFluid(); ZxDataFluid(const ZxDataFluid &other); virtual ~ZxDataFluid(); ZxDataFluid &operator = (const ZxDataFluid &other); bool operator == (const ZxDataFluid &other) const; bool operator != (const ZxDataFluid &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: virtual void setCode(const QString &sCode); virtual void setName(const QString &sName); void setWellCode(const QString& sWellCode); QString getWellCode() const; void setGOR(const double& fGOR); double getGOR() const; void setOilCF(const double& fOilCF); double getOilCF() const; void setOilVF(const double& fOilVF); double getOilVF() const; void setOilVisc(const double& fOilVisc); double getOilVisc() const; void setOilDens(const double& fOilDens); double getOilDens() const; void setGasDevif (const double& fGasDeviF); double getGasDevif () const; void setGasVisc(const double& fGasVisc); double getGasVisc() const; void setGasVF(const double& fGasVF); double getGasVF() const; void setGasDens(const double& fGasDens); double getGasDens() const; void setWaterCF(const double &fwaterCF); double getWaterCF()const; void setWaterVF(const double &fWaterVF); double getWaterVF()const; void setWaterVisc(const double &fWaterVisc); double getWaterVisc()const; void setWaterDens(const double &fWaterDens); double getWaterDens()const; void setRemark(const QString &sRemark); QString getRemark()const; protected: //QString m_sID; //流体ID号 QString m_sWellCode; //井号 double m_fGOR; //气油比 double m_fOilCF; double m_fOilVF; double m_fOilVisc; double m_fOilDens; double m_fGasDeviF; double m_fGasVisc; double m_fGasVF; double m_fGasDens; double m_fWaterCF; double m_fWaterVF; double m_fWaterVisc; double m_fWaterDens; };