代码拉取完成,页面将自动刷新
#ifndef CONST_DEF_H
#define CONST_DEF_H
#include <QtCore/qglobal.h>
#include <QtCore/QVariant>
#include <QUuid>
#include <QPoint>
#include <QVector>
//#include <QNetworkInterface>
#include <QThread>
#include <QMutexLocker>
#include <QMutex>
#include <QDebug>
#include <QFileDialog>
#include <QInputDialog>
#include <QEventLoop>
#include <QShowEvent>
#include <QTimer>
#include <QElapsedTimer>
#include <QMetaEnum>
#include <QDateTime>
#include <QFile>
//#include <QSerialPort>
//#include <QSerialPortInfo>
#include <QJsonParseError>
#include <QJsonArray>
#include <QJsonObject>
#include <QMessageBox>
#include <QScreen>
#include <QKeyEvent>
#include <QTreeView>
#include <QStandardItemModel>
#include <QTreeWidgetItem>
#include <QScrollBar>
//#include <QTcpSocket>
//#include <QTcpServer>
//#include <QHostAddress>
//#include <QModbusDataUnit>
//#include <QModbusTcpClient>
//#include <QModbusTcpServer>
//#include <QModbusRtuSerialMaster>
#include <QProgressBar>
#include <QBitmap>
// #include "singleton.h"
//#include "const_error.h"
//#include "const_str.h"
//#include <opencv2/opencv.hpp>
// #include "util.h"
#define LOGPATH "/log"
#define TESTTABLE "/table"
#define DATABASE_TYPE "QMYSQL"
#define DATABASE_IP "127.0.0.1"
#define DATABASE_PORT 3306
#define DATABASE_NAME "shentou_db"
//#define DATABASE_USERNAME "czsw"
#define DATABASE_PASSWORD "shentou123"
#define DB_CONFIG_FILE "/data/device/db.json"
// 数据记录页面
#define RECORDS_VIEW_JSON "/data/ui/RecordsView.json"
#define RES_RECORDS_VIEW_JSON "/data/ui/ResRecordsView.json"
//软件设置路径
#define SOFT_CONFIG "/data/settings/softsetting.ini"
//mdb模块
#define MDBUNIT1 "/data/device/mdbunit1.json"
#define MDBUNIT2 "/data/device/mdbunit2.json"
#define MDBUNIT3 "/data/device/mdbunit3.json"
#define MDBUNIT4 "/data/device/mdbunit4.json"
#define DEVICEPATH "/DATA/device/";
//address
#define ALLADDRESS "/data/device/alladdr.json"
//experiment settings
#define EXPERMENTPARAMS "/data/device/expermentparams.json";
//experiment settings
#define ALLDEVSINSTALLED "/data/device/alldevsinstalled.json";//experiment settings
#define COEFFICIENTS "/data/device/cofficient.json";
//for excel
#define EXCELTEMPLATE "/data/excel/template.xlsx"
#define TARGETPATH "/table"
#define TEMPERSENSORLOCATION 16
#define WASHVALLOCATION 1
#define RELAY0 0
#define RELAY1 1
#define RELAY2 2
#define RELAY3 3
struct TEMPERCONSTPARAMS{
QMap<QString,int>bauds;
};
struct RAINSNOWCONSTPARAMS{
QMap<QString,int>bauds;
};
struct PRESSURECONSTPARAMS{
QMap<QString,int>bauds;
};
struct RELAYCONSTPARAMS{
QMap<QString,int>bauds;
};
#define MAX_LEVEL_TIME 10 //水位横轴范围
#define MAX_LEVEL 2.5 //水位纵轴范围
#define SETTINGCODE "admin@123"
#define WASHTIMEUPLIMIT 180
#define WASHTIMELOWLIMIT 1
#define WASHINTERVAL 5*60*1000
#define WASHDELAY 1 //S
#define RESINTERVAL 50 //min
#define PRESSUREREADNUMAFTERFILL 50
#define AllWATEROUTCOUNT 80
#endif // CONST_DEF_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。