完善了保存信息文件的定义,添加了读写JSON配置文件的代码。身体原因这两天效率不高。

This commit is contained in:
2021-11-18 17:42:14 +08:00
parent b9bece4de9
commit fdffb86c96
10 changed files with 312 additions and 41 deletions

View File

@ -2,6 +2,7 @@
#include "ATPControl_Serial_QT.h"
#include "Logger.h"
#include "ThreadDataGrabber.h"
#include "SystemConfigger.h"
using namespace std;
#pragma once
@ -14,6 +15,11 @@ int main(int argc, char *argv[])
QString qstrTest="This is a test message 2";
qDebug() << qstrTest;
cout << "This is a test message";
//////////////////////////////////////////////////////////////////////////configger
ZZ_SysConfigger test;
test.Initialize();
test.LoadSettingsFromFile_System();
test.LoadSettings_Test();
//////////////////////////////////////////////////////////////////////////test
ZZ_DataGrabberThread m_test;
//m_test.GrabOnce();
@ -24,7 +30,7 @@ int main(int argc, char *argv[])
m_pqDataGrabberThreadHolder->start();
m_test.TestGrab();
m_test.TestGrabOnce();
//QThread::msleep(5000);