windows-nt/Source/XPSP1/NT/ds/netapi/svcdlls/upssvc/apcsmart/unssens.h

40 lines
903 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*
*
* NOTES:
*
* REVISIONS:
* xxxddMMMyy
* tjg02Mar98: Override the DeepGetWithoutUpdate method that was recently
* added to sensor class
*
*/
#ifndef __UNSSENS_H
#define __UNSSENS_H
#include "sensor.h"
#include "err.h"
_CLASSDEF(UnsupportedSensor)
#define UNSUPPORTED_SENSOR -1
class UnsupportedSensor : public Sensor {
public:
UnsupportedSensor() : Sensor((PDevice)0,(PCommController)0,UNSUPPORTED_SENSOR){};
virtual INT IsA() const {return UNSUPPORTEDSENSOR;};
virtual INT Get(PCHAR aValue) {return ErrUNSUPPORTED;};
virtual INT DeepGet(PCHAR aValue) {return ErrUNSUPPORTED;};
virtual INT DeepGet(INT aCode, PCHAR aValue) {return ErrUNSUPPORTED;};
virtual INT DeepGetWithoutUpdate(PCHAR aValue) {return ErrUNSUPPORTED;};
virtual INT Set(const PCHAR aValue) {return ErrUNSUPPORTED;};
};
extern UnsupportedSensor _theUnsupportedSensor;
#endif