00001 00019 #ifndef __NEW_SIM_CONTROL_ANALOG_H__ 00020 #define __NEW_SIM_CONTROL_ANALOG_H__ 00021 00022 00023 #ifndef __NEW_SIM_RDR_H__ 00024 #include "new_sim_rdr.h" 00025 #endif 00026 00027 #ifndef __NEW_SIM_CONTROL_H__ 00028 #include "new_sim_control.h" 00029 #endif 00030 00031 extern "C" { 00032 #include "SaHpi.h" 00033 } 00034 00035 00042 class NewSimulatorControlAnalog : public NewSimulatorControl { 00043 00044 protected: 00046 SaHpiCtrlRecAnalogT m_rec; 00047 00049 SaHpiCtrlStateAnalogT m_state; 00050 00051 public: 00052 NewSimulatorControlAnalog( NewSimulatorResource *res, 00053 SaHpiRdrT rdr, 00054 SaHpiCtrlStateAnalogT state, 00055 SaHpiCtrlModeT mode ); 00056 virtual ~NewSimulatorControlAnalog(); 00057 00058 // create an RDR sensor record 00059 virtual bool CreateRdr( SaHpiRptEntryT &resource, SaHpiRdrT &rdr ); 00060 00061 virtual SaErrorT SetState( const SaHpiCtrlModeT &mode, const SaHpiCtrlStateT &state ); 00062 virtual SaErrorT GetState( SaHpiCtrlModeT &mode, SaHpiCtrlStateT &state ); 00063 00064 virtual void Dump( NewSimulatorLog &dump ) const; 00065 }; 00066 00067 00068 #endif