00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef #ifndef __NEW_SIM_SENSORDISCRETE_H__
00021 #define __NEW_SIM_SENSORDISCRETE_H__
00022
00023
00024 #ifndef __NEW_SIM_SENSOR_H__
00025 #include "new_sim_sensor.h"
00026 #endif
00027
00028
00029 class NewSimulatorSensorDiscrete : public NewSimulatorSensor
00030 {
00031 public:
00032 NewSimulatorSensorDiscrete( NewSimulatorResource *res );
00033 virtual ~NewSimulatorSensorDiscrete();
00034
00035
00036 virtual SaErrorT CreateEvent( NewSimulatorEvent *event, SaHpiEventT &h );
00037
00038
00039
00040
00041
00042
00043 virtual bool CreateRdr( SaHpiRptEntryT &resource, SaHpiRdrT &rdr );
00044
00045
00046 virtual SaErrorT GetSensorReading( SaHpiSensorReadingT &data, SaHpiEventStateT &state );
00047
00048 virtual SaErrorT GetEventMasksHw( SaHpiEventStateT &AssertEventMask,
00049 SaHpiEventStateT &DeassertEventMask
00050 );
00051 virtual SaErrorT SetEventMasksHw( const SaHpiEventStateT &AssertEventMask,
00052 const SaHpiEventStateT &DeassertEventMask
00053 );
00054 };
00055
00056
00057 #endif