#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 float& fGOR); float getGOR() const; void setOilCF(const float& fOilCF); float getOilCF() const; void setOilVF(const float& fOilVF); float getOilVF() const; void setOilVisc(const float& fOilVisc); float getOilVisc() const; void setOilDens(const float& fOilDens); float getOilDens() const; void setGasDevif (const float& fGasDeviF); float getGasDevif () const; void setGasVisc(const float& fGasVisc); float getGasVisc() const; void setGasVF(const float& fGasVF); float getGasVF() const; void setGasDens(const float& fGasDens); float getGasDens() const; void setWaterCF(const float &fwaterCF); float getWaterCF()const; void setWaterVF(const float &fWaterVF); float getWaterVF()const; void setWaterVisc(const float &fWaterVisc); float getWaterVisc()const; void setWaterDens(const float &fWaterDens); float getWaterDens()const; void setRemark(const QString &sRemark); QString getRemark()const; protected: //QString m_sID; //流体ID号 QString m_sWellCode; //井号 float m_fGOR; //气油比 float m_fOilCF; float m_fOilVF; float m_fOilVisc; float m_fOilDens; float m_fGasDeviF; float m_fGasVisc; float m_fGasVF; float m_fGasDens; float m_fWaterCF; float m_fWaterVF; float m_fWaterVisc; float m_fWaterDens; };