#ifndef __BASECLASS_H__ #define __BASECLASS_H__ #include #include #include #include #include #include class subModuleBase { public: bool init_flag; //是否初始化,false,true bool status = true; //相机状态(判断相机是否断开连接) std::string paras; //传输数据 cv::Mat m_mat; //传输图片 std::string moduleName; //模块名称 public: subModuleBase() {} virtual ~subModuleBase() {} virtual bool readData(std::vector&,QByteArray&, nlohmann::json&json = nlohmann::json()){return true;} virtual bool writeData(std::vector&,QByteArray&, nlohmann::json& json = nlohmann::json()){return true;} virtual bool initParas(QByteArray&, nlohmann::json& json = nlohmann::json()){return true;} virtual bool run() {return true;} }; #endif