mirror of
https://github.com/eclipse/upm.git
synced 2025-07-12 14:51:12 +03:00
Added Initial interface implementations
This commit is contained in:

committed by
Stefan Andritoiu

parent
9a959b578c
commit
551a86ee8c
@ -25,6 +25,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <otp538u.h>
|
||||
#include <interfaces/iTemperature.hpp>
|
||||
|
||||
namespace upm {
|
||||
|
||||
@ -73,7 +74,7 @@ namespace upm {
|
||||
* @image html otp538u.jpg
|
||||
* @snippet otp538u.cxx Interesting
|
||||
*/
|
||||
class OTP538U {
|
||||
class OTP538U : virtual public iTemperature {
|
||||
public:
|
||||
/**
|
||||
* OTP538U constructor
|
||||
@ -96,6 +97,13 @@ namespace upm {
|
||||
*/
|
||||
float ambientTemperature();
|
||||
|
||||
/**
|
||||
* Gets the ambient temperature in Celsius
|
||||
*
|
||||
* @return Ambient temperature
|
||||
*/
|
||||
virtual float getTemperature();
|
||||
|
||||
/**
|
||||
* Gets the object temperature in Celsius
|
||||
*
|
||||
|
Reference in New Issue
Block a user