25 lines
314 B
C++
25 lines
314 B
C++
#pragma once
|
|
|
|
#include <QOBject>
|
|
#include<QVariant>
|
|
|
|
#include "json.hpp"
|
|
using json = nlohmann::json;
|
|
|
|
class DataRow:public QObject
|
|
{
|
|
public:
|
|
DataRow();
|
|
~DataRow();
|
|
|
|
public:
|
|
int id;
|
|
QVariant value[80];
|
|
QString colName[80];
|
|
int colnum = 6;
|
|
|
|
QVariant getValue(QString name);
|
|
void toJson(json& jsonObj);
|
|
};
|
|
|