29 lines
899 B
C++
29 lines
899 B
C++
#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
|