Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Examples

LCDCpuSensor.h

00001 #ifndef _LCD_CPU_SENSOR_H_
00002 #define _LCD_CPU_SENSOR_H_
00003 
00004 #include "LCDSensor.h"
00005 #include <string>
00006 
00013 class LCDCpuSensor : public LCDSensor
00014 {
00015  private:
00016   std::string _cpuName;
00017   long _userTicks;
00018   long _sysTicks;
00019   long _niceTicks;
00020   long _idleTicks;
00021   int _load;
00022   
00023   void getTicks(long &u,long &s,long &n,long &i);
00024 
00025  public:
00026   virtual void waitForChange();
00027   virtual std::string getCurrentValue();
00028 
00035   LCDCpuSensor(std::string cpuName = "cpu");
00036 };
00037 
00038 #endif

Generated on Wed Aug 4 19:39:09 2004 for LCDApi by doxygen 1.3.6