#pragma once #include "ZxDataObjectEx.h" // DataObjectDbl class M_PROJECTMANAGER_EXPORT ZxDataObjectDbl : public ZxDataObjectEx { // ZX_DECLARE_DYNAMIC public: ZxDataObjectDbl(ZxDataObject *pParent); ZxDataObjectDbl(const ZxDataObjectDbl& other); virtual ~ZxDataObjectDbl(); ZxDataObjectDbl &operator = (const ZxDataObjectDbl& other); bool operator == (const ZxDataObjectDbl& other) const; bool operator != (const ZxDataObjectDbl& other) const; public: // 接口 virtual ZxDataObject* clone(); // 20240604为了方便,新增内部解析 virtual bool _parseData(VecVariant vec, int& n); virtual bool _sumUpData(VecVariant& vec); // 序列化 virtual void onSerialize(ZxSerializer* ser); virtual void onDeserialize(ZxSerializer* ser); public: void setExt1(const double& s); double getExt1() const; void setExt2(const double& s); double getExt2() const; void setExt3(const double& s); double getExt3() const; void setExt4(const double& s); double getExt4() const; void setExt5(const double& s); double getExt5() const; protected: double m_dExt1; double m_dExt2; double m_dExt3; double m_dExt4; double m_dExt5; };