AverageConfigurator.h 773 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// Created by Netti, Alessio on 16.01.19.
//

#ifndef PROJECT_AVERAGECONFIGURATOR_H
#define PROJECT_AVERAGECONFIGURATOR_H

#include "../../includes/AnalyzerConfiguratorTemplate.h"
#include "AverageAnalyzer.h"

class AverageConfigurator : public AnalyzerConfiguratorTemplate<AverageAnalyzer, SensorBase> {

public:
    AverageConfigurator();
    ~AverageConfigurator();

private:

    void sensorBase(SensorBase& s, CFG_VAL config) override;
    void analyzer(AverageAnalyzer& a, CFG_VAL config) override;
    void unit(UnitTemplate<SensorBase>& u) override;
};

extern "C" AnalyzerConfiguratorInterface* create() {
    return new AverageConfigurator;
}

extern "C" void destroy(AnalyzerConfiguratorInterface* c) {
    delete c;
}

#endif //PROJECT_AVERAGECONFIGURATOR_H