You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWATI/Include/mData/mProjectManager/DataModels/ZxDataObjectDbl.h

59 lines
1.2 KiB
C

#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;
};