mirror of https://github.com/tongzx/nt5src
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.
39 lines
903 B
39 lines
903 B
/*
|
|
*
|
|
* 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
|