biblioteca que serve como midleware para as diversas placas que podem implementar esse padrão !

Dependents:   sgam_mdw_test

peripheral/Sensor.h

Committer:
AndersonIctus
Date:
2019-06-22
Revision:
3:c87e6b48834e
Parent:
1:3a7f743de36f

File content as of revision 3:c87e6b48834e:

#ifndef SGAM_MDW_SENSOR_H
#define SGAM_MDW_SENSOR_H

template<class T>
class Sensor {
public:
    Sensor() { };
    ~Sensor(){ };

    virtual int initialize() = 0;
    virtual int finalize() = 0;

    virtual T* getValue() = 0;
    virtual const char* getName() = 0;

protected:
    T* value;
};
#endif