00001 #ifndef SIGEL_ROBOT_SIG_SENSOR_H 00002 #define SIGEL_ROBOT_SIG_SENSOR_H 00003 00004 namespace SIGEL_Robot { class SIG_Sensor; } 00005 00006 #include <qstring.h> 00007 #include "SIGEL_Robot/SIG_Robot.h" 00008 00009 namespace SIGEL_Robot { 00014 class SIG_Sensor { 00015 public: 00016 enum SensorType { tJointSensor }; 00017 private: 00018 SIG_Robot *parent; 00019 QString name; 00020 int number; 00021 public: 00022 SIG_Sensor (SIG_Robot *par, QString n, int nr); 00023 SIG_Sensor (SIG_Robot *par, QTextStream & tx); 00024 virtual ~SIG_Sensor (void); 00025 00026 virtual SensorType getSensorType (void) const = 0; 00027 QString getName (void) const; 00028 int getNumber (void) const; 00029 00030 virtual void writeToFileTransfer (QTextStream & tx); 00031 }; 00032 } 00033 00034 #endif // SIGEL_ROBOT_SIG_SENSOR_H