添加项目文件。

This commit is contained in:
ldh
2026-11-06 14:45:09 +08:00
parent fb76f2ed7d
commit 24cbecc2cc
3437 changed files with 895900 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef SPECTROMETERCALLBACK_H
#define SPECTROMETERCALLBACK_H
#include "aris_global.h"
#include <vector>
#include <string>
class ARIS_EXPORT SpectrometerCallback
{
public:
virtual ~SpectrometerCallback() = default;
// 回调函数,当光谱数据准备好时被调用
virtual void onDataReceived(std::string serialNumber,const std::vector<float> &wavelength,
const std::vector<float>& spectrum) = 0;
// 回调函数,当光谱数据准备好时被调用
virtual void onDataReceivedBanch(std::string serialNumber,const std::vector<float> &wavelength,
const std::vector<std::vector<float>>& spectrum) = 0;
// 回调函数,当发生错误时被调用
virtual void onError(std::string serialNumber,
const std::string& error) = 0;
};
#endif // SPECTROMETERCALLBACK_H