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.
|
|
|
|
#ifndef NMDATAEXAMPLE_H
|
|
|
|
|
#define NMDATAEXAMPLE_H
|
|
|
|
|
|
|
|
|
|
#include "nmData_global.h"
|
|
|
|
|
// 以Dbl为结尾的类,字符串扩展字段是Float
|
|
|
|
|
// 以Str为结尾的类,字符串扩展字段是Nvarchar
|
|
|
|
|
#include "ZxDataObjectDbl.h"
|
|
|
|
|
|
|
|
|
|
class NM_DATA_EXPORT nmDataExample : public ZxDataObjectDbl
|
|
|
|
|
{
|
|
|
|
|
ZX_DECLARE_DYNAMIC
|
|
|
|
|
public:
|
|
|
|
|
nmDataExample();
|
|
|
|
|
nmDataExample(const nmDataExample &other);
|
|
|
|
|
virtual ~nmDataExample();
|
|
|
|
|
nmDataExample &operator = (const nmDataExample &other);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
// 接口
|
|
|
|
|
virtual ZxDataObject* clone();
|
|
|
|
|
virtual QString type() const;
|
|
|
|
|
// 表名
|
|
|
|
|
virtual QString getTableName();
|
|
|
|
|
// 加载保存(数据库部分)
|
|
|
|
|
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;
|
|
|
|
|
private:
|
|
|
|
|
// TODO,定义数据表时定义为大字段
|
|
|
|
|
QVector<QPoint> m_pointList;
|
|
|
|
|
// QVector<Vector<int>> m_lineList;
|
|
|
|
|
// Vector<>
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // NMDATAEXAMPLE_H
|