Source code of Windows XP (NT5)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*
* * NOTES: * * REVISIONS: * * cad28Sep93: Made sure destructor(s) virtual * pcy08Apr94: Trim size, use static iterators, dead code removal * djs29May97: Added update method for Symmetra events */
#ifndef BATPACKS_H
#define BATPACKS_H
#include "eeprom.h"
#include "firmrevs.h"
#include "sensor.h"
_CLASSDEF(NumberBatteryPacksSensor)
class NumberBatteryPacksSensor : public EepromSensor { protected: PFirmwareRevSensor theFirmwareRev; virtual INT storeValue(const PCHAR aValue);
public: NumberBatteryPacksSensor(PDevice aParent, PCommController aCommController=NULL, PFirmwareRevSensor aFirmwareRev=NULL); virtual ~NumberBatteryPacksSensor(); virtual INT IsA() const { return NUMBERBATTERYPACKSSENSOR; }; virtual INT Set(INT aCode, const PCHAR aValue); virtual INT Set(const PCHAR aValue); virtual INT Get(INT aCode, PCHAR aValue); virtual INT Update(PEvent anEvent);
private: INT theNumber_Of_Internal_Packs; INT theSensorIsInitialized;
};
#endif
|