2019-12-05 11:53:01 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "data_source.h"
|
|
|
|
#include "vars.h"
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
class DataSourceCtrl {
|
|
|
|
|
|
|
|
public:
|
|
|
|
DataSourceCtrl();
|
|
|
|
DataSourceCtrl(vector<DataSource*>);
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void update();
|
|
|
|
virtual void test();
|
|
|
|
virtual void postProcess();
|
|
|
|
virtual void read();
|
2019-12-26 17:44:58 +01:00
|
|
|
int getValue(int i);
|
2019-12-05 11:53:01 +01:00
|
|
|
|
|
|
|
vector<DataSource*> ds;
|
|
|
|
|
|
|
|
};
|