#pragma once #include "ZxDataObjectDbl.h" // 油藏 class M_PROJECTMANAGER_EXPORT ZxDataRes : public ZxDataObjectDbl { ZX_DECLARE_DYNAMIC public: ZxDataRes(); ZxDataRes(const ZxDataRes &other); virtual ~ZxDataRes(); ZxDataRes &operator = (const ZxDataRes &other); bool operator == (const ZxDataRes &other) const; bool operator != (const ZxDataRes &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: void setWellCode(const QString& sWellCode); QString getWellCode() const; void setEffThickness(const float& fEffThickness); float getEffThickness() const; void setResTopDepth(const float& fResTopDepth); float getResTopDepth() const; void setResBottomDepth(const float& fResBottomDepth); float getResBottomDepth() const; void setPor(const float& fPor); float getPor() const; void setK(const float& fK); float getK() const; void setFormationPress(const float& fFormationPress); float getFormationPress() const; void setFormationTemp(const float& fFormationTemp); float getFormationTemp() const; void setTotalCF(const float& fTotalCF); float getTotalCF() const; protected: //QString m_sID; QString m_sWellCode; //QString m_sLayerName; float m_fEffThickness; float m_fResTopDepth; float m_fResBottomDepth; float m_fPor; float m_fK; float m_fFormationPress; float m_fFormationTemp; float m_fTotalCF; };