/// <summary> /// Initialize a new instance of the class and set the function delegates, properties and member variables to those values associated with the /// specified communication interface. /// </summary> /// <param name="communicationInterface">Reference to the communication interface containing the properties and member variables that are to be /// used to initialize the class.</param> public CommunicationSelfTest(ICommunicationParent communicationInterface) : base(communicationInterface) { #region - [Initialize VcuCommunication.selftest.cpp Function Delegates] - // ---------------------------------------------------------------------- // Initialize the function delegates to either the VcuCommunication32.dll // or VcuCommunication64.dll functions depending upon whether the // Windows operating system is 64 bit or 32 bit. // ---------------------------------------------------------------------- if (m_Is64BitOperatingSystem == true) { m_GetSelfTestSpecialMessage = VcuCommunication64SelfTest.GetSelfTestSpecialMessage; m_StartSelfTestTask = VcuCommunication64SelfTest.StartSelfTestTask; m_ExitSelfTestTask = VcuCommunication64SelfTest.ExitSelfTestTask; m_AbortSTSequence = VcuCommunication64SelfTest.AbortSTSequence; m_SendOperatorAcknowledge = VcuCommunication64SelfTest.SendOperatorAcknowledge; m_UpdateSTTestList = VcuCommunication64SelfTest.UpdateSTTestList; m_RunPredefinedSTTests = VcuCommunication64SelfTest.RunPredefinedSTTests; m_UpdateSTLoopCount = VcuCommunication64SelfTest.UpdateSTLoopCount; m_ExecuteSTTestList = VcuCommunication64SelfTest.ExecuteSTTestList; unsafe { m_GetSelfTestResult = VcuCommunication64SelfTest.GetSelfTestResult; } m_UpdateSTMode = VcuCommunication64SelfTest.UpdateSTMode; } else { m_GetSelfTestSpecialMessage = VcuCommunication32SelfTest.GetSelfTestSpecialMessage; m_StartSelfTestTask = VcuCommunication32SelfTest.StartSelfTestTask; m_ExitSelfTestTask = VcuCommunication32SelfTest.ExitSelfTestTask; m_AbortSTSequence = VcuCommunication32SelfTest.AbortSTSequence; m_SendOperatorAcknowledge = VcuCommunication32SelfTest.SendOperatorAcknowledge; m_UpdateSTTestList = VcuCommunication32SelfTest.UpdateSTTestList; m_RunPredefinedSTTests = VcuCommunication32SelfTest.RunPredefinedSTTests; m_UpdateSTLoopCount = VcuCommunication32SelfTest.UpdateSTLoopCount; m_ExecuteSTTestList = VcuCommunication32SelfTest.ExecuteSTTestList; unsafe { m_GetSelfTestResult = VcuCommunication32SelfTest.GetSelfTestResult; } m_UpdateSTMode = VcuCommunication32SelfTest.UpdateSTMode; } #endregion - [Initialize VcuCommunication.selftest.cpp Function Delegates] - }