50 lines
823 B
C++
50 lines
823 B
C++
//WORKING
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <cachePool.hpp>
|
|
#include <appConfig.h>
|
|
//#include <pythonCpp.h>
|
|
//#include <pluginManager.h>
|
|
//QT
|
|
#include <qtimer.h>
|
|
|
|
#define disableBackEndCheck 0
|
|
#define disableeAlgo 0
|
|
class detGlobalData
|
|
{
|
|
public:
|
|
std::string productTypeStr;
|
|
std::string currentSn;
|
|
int productType = 0;
|
|
int indexOfArm = 0;
|
|
};
|
|
/// <summary>
|
|
/// APP BASIC
|
|
/// </summary>
|
|
class appCore :public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
appCore()
|
|
//: _productDataCache(10)
|
|
{
|
|
|
|
};
|
|
//pythonCpp _pythonCpp;
|
|
//LRUCache<std::string, productCacheBase> _productDataCache;//产品信息缓存
|
|
//qtFunction _qtFunc;
|
|
appConfig _appConfig;
|
|
//
|
|
detGlobalData _detGlobalData;
|
|
//PluginManager _PluginManager;
|
|
public slots:
|
|
void switchProductSignal()
|
|
{
|
|
|
|
}
|
|
};
|
|
//
|
|
|
|
extern appCore _core;
|
|
#pragma once |