mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
Added iWater interface
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
This commit is contained in:

committed by
Serban Waltter

parent
ec58633ca5
commit
024fd308fa
@ -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 */
|
||||
|
Reference in New Issue
Block a user