00001
00021 #ifndef __NEW_SIM_DIMI_DATA_H__
00022 #define __NEW_SIM_DIMI_DATA_H__
00023
00024
00025 extern "C" {
00026 #include "SaHpi.h"
00027 }
00028
00029
00030 #ifndef __NEW_SIM_RDR_H__
00031 #include "new_sim_rdr.h"
00032 #endif
00033
00034 class NewSimulatorDomain;
00035
00036
00043 class NewSimulatorDimiTest {
00044 private:
00046 SaHpiDimiTestNumT m_test_id;
00048 SaHpiDimiTestT m_info;
00050 SaHpiDimiTestResultsT m_results;
00052 SaHpiDimiTestRunStatusT m_status;
00054 SaHpiDimiReadyT m_ready;
00055
00056
00057 public:
00058 NewSimulatorDimiTest( SaHpiDimiTestNumT id );
00059 virtual ~NewSimulatorDimiTest();
00060
00062 virtual SaHpiDimiTestNumT Num() const { return m_test_id; }
00063 bool SetData( SaHpiDimiTestT info );
00064 bool SetReadiness( SaHpiDimiReadyT ready );
00065 bool SetResults( SaHpiDimiTestResultsT results );
00066
00067 bool IsRunning();
00068
00069
00070 SaErrorT GetInfo( SaHpiDimiTestT &tinfo );
00071 SaErrorT GetReady( SaHpiDimiReadyT &ready );
00072 SaErrorT StartTest( SaHpiUint8T number, SaHpiDimiTestVariableParamsT *param );
00073 SaErrorT Cancel();
00074 SaErrorT GetStatus( SaHpiDimiTestPercentCompletedT &perc,
00075 SaHpiDimiTestRunStatusT &status);
00076 SaErrorT GetResults(SaHpiDimiTestResultsT &results);
00077
00078 virtual void Dump( NewSimulatorLog &dump ) const;
00079 };
00080
00081
00082
00083
00084 #endif
00085