Leaked source code of windows server 2003
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.

46 lines
900 B

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * ker23NOV92 Initial OS/2 Revision
  7. * pcy14Dec92: Changed READ_ONLY to AREAD_ONLY
  8. * pcy17Dec92: Added Validate
  9. * cad28Sep93: Made sure destructor(s) virtual
  10. * pcy08Apr94: Trim size, use static iterators, dead code removal
  11. */
  12. #ifndef __STSENSOR_H
  13. #define __STSENSOR_H
  14. #include "sensor.h"
  15. #include "isa.h"
  16. _CLASSDEF(StateSensor)
  17. class StateSensor : public Sensor {
  18. protected:
  19. virtual INT storeState(const INT aState);
  20. public:
  21. StateSensor(PDevice aParent,
  22. PCommController aCommController,
  23. INT aSensorCode = NO_SENSOR_CODE,
  24. ACCESSTYPE anACCESSTYPE = AREAD_ONLY);
  25. //overidden interfaces
  26. virtual INT Validate(INT, const PCHAR);
  27. //Additional Interfaces
  28. virtual INT GetState(INT, INT *);
  29. virtual INT SetState(INT, INT);
  30. };
  31. #endif