mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2026-04-28 03:08:08 +00:00
Analyzer plug
This commit is contained in:
39
Analyzer/raw/PulseLengthStat/src/PulseLengthStatAnalyzer.h
Normal file
39
Analyzer/raw/PulseLengthStat/src/PulseLengthStatAnalyzer.h
Normal file
@ -0,0 +1,39 @@
|
||||
#ifndef PULSELENGTHSTAT_ANALYZER_H
|
||||
#define PULSELENGTHSTAT_ANALYZER_H
|
||||
|
||||
#include <Analyzer.h>
|
||||
#include "PulseLengthStatAnalyzerSettings.h"
|
||||
#include "PulseLengthStatAnalyzerResults.h"
|
||||
#include "PulseLengthStatSimulationDataGenerator.h"
|
||||
#include <memory>
|
||||
|
||||
class ANALYZER_EXPORT PulseLengthStatAnalyzer : public Analyzer2
|
||||
{
|
||||
public:
|
||||
PulseLengthStatAnalyzer();
|
||||
virtual ~PulseLengthStatAnalyzer();
|
||||
|
||||
virtual void SetupResults();
|
||||
virtual void WorkerThread();
|
||||
|
||||
virtual U32 GenerateSimulationData(U64 newest_sample_requested, U32 sample_rate,
|
||||
SimulationChannelDescriptor** simulation_channels);
|
||||
virtual U32 GetMinimumSampleRateHz();
|
||||
|
||||
virtual const char* GetAnalyzerName() const;
|
||||
virtual bool NeedsRerun();
|
||||
|
||||
protected:
|
||||
PulseLengthStatAnalyzerSettings mSettings;
|
||||
std::unique_ptr<PulseLengthStatAnalyzerResults> mResults;
|
||||
AnalyzerChannelData* mChannelData;
|
||||
|
||||
PulseLengthStatSimulationDataGenerator mSimulationDataGenerator;
|
||||
bool mSimulationInitilized;
|
||||
};
|
||||
|
||||
extern "C" ANALYZER_EXPORT const char* __cdecl GetAnalyzerName();
|
||||
extern "C" ANALYZER_EXPORT Analyzer* __cdecl CreateAnalyzer();
|
||||
extern "C" ANALYZER_EXPORT void __cdecl DestroyAnalyzer(Analyzer* analyzer);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user