代码拉取完成,页面将自动刷新
#pragma once
#include <array>
#include <QDataStream>
struct Param_HRF9828
{
Param_HRF9828();
int RangeIndex;
int DAQFreq;
double T0_Freq;
double T0_Duty;
double T1_Freq;
double T1_Duty;
double T2_Freq;
double T2_Duty;
std::array<double, 24> AO;
std::array<int, 14> DO;
std::array<QString, (24 + 14) * 2> Names;
std::array<double, (24) * 2> Coefs;
};
struct Param_USB9982
{
Param_USB9982();
int trigUnit();
int gatherSize(); //ɼС
int frameSize(); //floatС
bool Enable2G;
bool EnableInt;
bool EnableADD;
int CHCount;
int TriggerMode;
int TriggerSource;
int TriggerDelay;
int TriggerLevel;
int Thres;
int ADGain;
int ADDCnt;
int ADDThd;
int ClockDeci;
int ClockSel;
int GatherLength;
int GatherTime;
double PWMFreq;
};
QDataStream &operator<<(QDataStream &s, const Param_USB9982 ¶m);
QDataStream &operator>>(QDataStream &s, Param_USB9982 ¶m);
struct SaveConfig
{
SaveConfig();
bool saveFile;
QString savePre;
QString savePath;
int maxSize;
};
QDataStream &operator<<(QDataStream &s, const SaveConfig ¶m);
QDataStream &operator >> (QDataStream &s, SaveConfig ¶m);
class Config
{
public:
Config();
void save();
void load();
Param_HRF9828 hrf9828;
Param_USB9982 usb9982;
SaveConfig saveInfo;
protected:
void saveToStream(QDataStream &s);
void loadFromStream(QDataStream &s);
QByteArray backUp();
QByteArray m_backUp;
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。