00001 /*************************************************************************** 00002 TouchSensor.h - description 00003 ------------------- 00004 begin : dim jui 6 2003 00005 copyright : (C) 2003 by Michel Dubois, Yann Le Guyadec 00006 email : Michel.Dubois@univ-ubs.fr, Yann.Le-Guyadec@univ-ubs.fr 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 // Modèle statique 00019 /* 00020 * changes : 00021 * - 08/06/03 MD Creation ! 00022 */ 00023 00024 00025 #ifndef __TOUCHSENSOR__ 00026 #define __TOUCHSENSOR__ 00027 00028 00029 // Include files 00030 #include "Sensor.h" 00031 #include "Leg.h" 00032 00033 //class Leg; 00034 00035 namespace API { 00044 class TouchSensor : public Sensor 00045 { 00046 public: 00052 bool toBoolean() const; 00053 00059 Leg * getLeg() const; 00060 00061 protected: 00066 void setLeg(Leg * aLeg) ; 00067 00072 TouchSensor(); 00073 00078 virtual ~TouchSensor(); 00079 00080 private: 00081 00082 Leg * leg; 00083 00084 };// END CLASS DEFINITION TouchSensor 00085 } 00086 #endif // __TOUCHSENSOR__