Windows2003-3790/ds/netapi/svcdlls/upssvc/apcsmart/stsensor.h
2020-09-30 16:53:55 +02:00

47 lines
900 B
C++

/*
*
* NOTES:
*
* REVISIONS:
* ker23NOV92 Initial OS/2 Revision
* pcy14Dec92: Changed READ_ONLY to AREAD_ONLY
* pcy17Dec92: Added Validate
* cad28Sep93: Made sure destructor(s) virtual
* pcy08Apr94: Trim size, use static iterators, dead code removal
*/
#ifndef __STSENSOR_H
#define __STSENSOR_H
#include "sensor.h"
#include "isa.h"
_CLASSDEF(StateSensor)
class StateSensor : public Sensor {
protected:
virtual INT storeState(const INT aState);
public:
StateSensor(PDevice aParent,
PCommController aCommController,
INT aSensorCode = NO_SENSOR_CODE,
ACCESSTYPE anACCESSTYPE = AREAD_ONLY);
//overidden interfaces
virtual INT Validate(INT, const PCHAR);
//Additional Interfaces
virtual INT GetState(INT, INT *);
virtual INT SetState(INT, INT);
};
#endif