init files
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
#ifndef Hd_LightSourceModule_CST_H
|
||||
#define Hd_LightSourceModule_CST_H
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#include<opencv2/opencv.hpp>
|
||||
#include <opencv.hpp>
|
||||
#include <QByteArray>
|
||||
#include <QDebug>
|
||||
#include<iostream>
|
||||
#include <Windows.h>
|
||||
#include <time.h>
|
||||
#include <QScopedPointer>
|
||||
#include <QThread>
|
||||
#include <CommonToolDll.h>
|
||||
#include <ControllerDll.h>
|
||||
#include <ErrorCode.h>
|
||||
#include <sControllerDll.h>
|
||||
#include <QMap>
|
||||
#include "base.h"
|
||||
|
||||
using namespace cv;
|
||||
using namespace std;
|
||||
#pragma execution_character_set("utf-8")
|
||||
|
||||
#pragma comment(lib,"./CommonToolDll.lib")
|
||||
#pragma comment(lib,"./ControllerDll.lib")
|
||||
#pragma comment(lib,"./sControllerDll.lib")
|
||||
|
||||
|
||||
|
||||
class MyThread;
|
||||
class Hd_LightSourceModule_CST :public Base
|
||||
{
|
||||
public:
|
||||
Hd_LightSourceModule_CST();
|
||||
virtual ~Hd_LightSourceModule_CST();
|
||||
//从类中读数据到实例对象
|
||||
//bool readData(std::vector<cv::Mat>& mat, QByteArray& data);
|
||||
//实例对象把数据写入到类
|
||||
bool writeData(std::vector<cv::Mat>& mat, QByteArray& data);
|
||||
bool initParas(QByteArray& params);
|
||||
//bool run();
|
||||
bool checkStatus();
|
||||
bool searchDevice();
|
||||
private:
|
||||
MyThread *m_thread = nullptr;
|
||||
ControllerHandle handle;
|
||||
QMap<QString, QString> SNtoIP;
|
||||
bool isOpenFlag = false;
|
||||
};
|
||||
|
||||
class MyThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit MyThread(QObject *parent = nullptr):m_obj(parent){}
|
||||
void run();
|
||||
private:
|
||||
QObject *m_obj;
|
||||
signals:
|
||||
|
||||
};
|
||||
|
||||
extern "C"
|
||||
{
|
||||
Q_DECL_EXPORT Hd_LightSourceModule_CST * create();
|
||||
Q_DECL_EXPORT void destory(Hd_LightSourceModule_CST * ptr);
|
||||
}
|
||||
|
||||
#endif // Hd_LightSourceModule_CST_H
|
||||
Reference in New Issue
Block a user