Added iWater interface

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Stefan Andritoiu
2018-06-20 18:31:38 +03:00
committed by Mihai Tudor Panu
parent f5f2920c70
commit 1949916a8e
2 changed files with 48 additions and 2 deletions

View File

@ -25,6 +25,7 @@
#include <string>
#include "water.h"
#include <interfaces/iWater.hpp>
namespace upm {
/**
@ -49,7 +50,7 @@ namespace upm {
* @image html water.jpg
* @snippet water.cxx Interesting
*/
class Water {
class Water : virtual public iWater {
public:
/**
* digital water sensor constructor
@ -66,7 +67,7 @@ namespace upm {
*
* @return True if the sensor is wet, false otherwise
*/
bool isWet();
virtual bool isWet();
private:
/* Disable implicit copy and assignment operators */