基础代码更新
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#ifndef __BASECLASS_H__
|
||||
#ifndef __BASECLASS_H__
|
||||
#define __BASECLASS_H__
|
||||
|
||||
#include <iostream>
|
||||
@@ -16,15 +16,16 @@ public:
|
||||
bool status = true; //相机状态(判断相机是否断开连接)
|
||||
std::string paras; //传输数据
|
||||
std::vector<cv::Mat> m_mat; //传输图片
|
||||
std::string moduleName; //模块名称
|
||||
std::string moduleName = ""; //模块名称
|
||||
public:
|
||||
Base(){}
|
||||
virtual ~Base(){}
|
||||
virtual bool readData(std::vector<cv::Mat>&,QByteArray&){return true;}
|
||||
virtual bool writeData(std::vector<cv::Mat>&,QByteArray&){return true;}
|
||||
virtual bool initParas(QByteArray&){return true;}
|
||||
virtual bool run() {return true;}
|
||||
Base() {}
|
||||
virtual ~Base() {}
|
||||
virtual bool readData(std::vector<cv::Mat>&, QByteArray&) { return true; }
|
||||
virtual bool writeData(std::vector<cv::Mat>&, QByteArray&) { return true; }
|
||||
virtual bool initParas(QByteArray&) { return true; }
|
||||
virtual bool run() { return true; }
|
||||
virtual bool checkStatus() { return true; }
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user