![]() |
Khangai Robot Play - Naive
01
THe naive play of the Khangai Robot
|
: An abstract class from which all the sensors must implement More...
#include <sensor.h>
Public Member Functions | |
| Sensor ()=default | |
| Sensor (Sensor &&)=default | |
| Sensor (const Sensor &)=default | |
| Sensor & | operator= (Sensor &&)=default |
| Sensor & | operator= (const Sensor &)=default |
| virtual | ~Sensor () |
| virtual int | init ()=0 |
| SensorName | get_Name () |
| virtual T | read ()=0 |
| virtual bool | available ()=0 |
| virtual void | denit ()=0 |
Protected Attributes | |
| SensorName | name_ |
Friends | |
| bool | operator== (Sensor &sen1, Sensor &sen2) |
| bool | operator!= (Sensor &sen1, Sensor &sen2) |
: An abstract class from which all the sensors must implement
| T | : The type of value read from the sensor |
|
pure virtual |
|
pure virtual |
|
inline |
|
protected |