Files
HPPA/HPPA/fileOperation.h
tangchao0503 0b4ee48355 1、实现了光谱仪简单的采集功能:曝光、调焦、暗电流、采集影像、保存影像;
2、设置光谱仪帧率、曝光时间、gain;
3、在页面中嵌入了rgb相机图传(通过opencv实现);
4、平台的相机位置模拟、x/y马达的分别控制、x/y马达的量程检测;
5、轨迹规划;
6、加入了张卓的自动调焦模块;
7、加入了自动电源控制;
2023-03-14 22:52:38 +08:00

42 lines
808 B
C++

#ifndef FILE_OPERATIOIN_H
#define FILE_OPERATIOIN_H
#include <iostream>
#include <fstream>
#include<iostream>
#include <QObject>
using namespace std;
class FileOperation :public QObject
{
Q_OBJECT
public:
FileOperation();
~FileOperation();
string getDirectoryOfExe();//getDirectoryOfExe
string getDirectoryFromString(string directory="C:/HPPA_image");
public Q_SLOTS:
bool copyFile(QString source, QString target);
/*bool moveFile(const string& source, const string& target);
bool deleteFile(const string& path);
bool hasFile(const string& path);
bool copyDirectory(const string& source, const string& target);
bool moveDirectory(const string& source, const string& target);
bool deleteDirectory(const string& path);*/
signals:
void CopyFinishedSignal();//»æÖÆÓ°ÏñÐźÅ
};
#endif