00001 /*************************************************************************** 00002 Sensor.h - description 00003 ------------------- 00004 begin : ven jun 08 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 00019 /* 00020 * changes : 00021 * - 08/06/03 MD Creation ! 00022 */ 00023 00024 00025 #ifndef __SENSOR__ 00026 #define __SENSOR__ 00027 00028 namespace API { 00036 class Sensor 00037 { 00038 public: 00039 00044 bool getActivateMode() const; 00045 00050 double getRawValue() const; 00051 00056 void setActivateMode(bool onoff); 00057 00058 protected: 00063 Sensor(); 00064 00069 virtual ~Sensor(); 00070 00075 virtual void setRawValue(double aValue)=0; 00076 00077 private: 00078 bool activateMode; 00079 double rawValue; 00080 00081 };// END CLASS DEFINITION Sensor 00082 } 00083 #endif // __SENSOR__