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-07-13
Revision:
7:cb5a0a555a53
Parent:
3:c87e6b48834e

File content as of revision 7:cb5a0a555a53:

#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