00001 /* 00002 * BatteryAccess.h 00003 * 00004 * Created on: Aug 26, 2009 00005 * Author: karl 00006 */ 00007 00008 #ifndef BATTERYACCESS_H_ 00009 #define BATTERYACCESS_H_ 00010 00011 #include "BaseModule.h" 00012 #include "BaseBattery.h" 00013 00022 class BatteryAccess: public BaseModule { 00023 protected: 00025 BaseBattery* battery; 00026 00028 int deviceID; 00029 00030 protected: 00036 void registerWithBattery(const std::string& name, int numAccounts); 00037 00044 void draw(DrawAmount& amount, int account); 00045 00052 void drawCurrent(double amount, int account); 00053 00060 void drawEnergy(double amount, int account); 00061 00062 public: 00063 BatteryAccess(); 00064 }; 00065 00066 #endif /* BATTERYACCESS_H_ */