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/nmNum/nmData/nmDataExample.h

42 lines
1.1 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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