00001 #ifndef _LCD_TIME_SENSOR_H_ 00002 #define _LCD_TIME_SENSOR_H_ 00003 00004 #include "LCDSensor.h" 00005 #include <string> 00006 00007 const std::string LCD_TIME_HOUR_MINUTE = "+%H:%M"; 00008 const std::string LCD_TIME_HOUR_MINUTE_SECOND = "+%H:%M:%S"; 00009 00016 class LCDTimeSensor : public LCDSensor 00017 { 00018 private: 00019 std::string _format; 00020 00021 public: 00022 virtual void waitForChange(); 00023 virtual std::string getCurrentValue(); 00024 00031 LCDTimeSensor(const std::string &format = LCD_TIME_HOUR_MINUTE); 00032 }; 00033 00034 #endif