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.
55 lines
1.6 KiB
55 lines
1.6 KiB
// Suite.h: interface for the CSuite class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
#include "test.h"
|
|
|
|
#if !defined(AFX_SUITE_H__F1A2E086_3DAE_4F83_ABEA_BF59D1571439__INCLUDED_)
|
|
#define AFX_SUITE_H__F1A2E086_3DAE_4F83_ABEA_BF59D1571439__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class ATL_NO_VTABLE CSuite :
|
|
public CComObjectRootEx<CComSingleThreadModel>,
|
|
// public CComCoClass<CTest, &CLSID_TSDiagnosis>,
|
|
public IDispatchImpl<ITestSuite, &IID_ITestSuite, &LIBID_TSDIAGLib>
|
|
|
|
{
|
|
public:
|
|
CSuite();
|
|
virtual ~CSuite();
|
|
|
|
DECLARE_NO_REGISTRY()
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
BEGIN_COM_MAP(CSuite)
|
|
COM_INTERFACE_ENTRY(ITestSuite)
|
|
COM_INTERFACE_ENTRY2(IDispatch, ITest)
|
|
END_COM_MAP()
|
|
|
|
// ITestSuite
|
|
public:
|
|
STDMETHOD(get_Name)(/*[out, retval]*/ BSTR *pVal);
|
|
STDMETHOD(get_Description)(/*[out, retval]*/ BSTR *pVal);
|
|
STDMETHOD(get_IsApplicable)(/*[out, retval]*/ BOOL *pVal);
|
|
STDMETHOD(get_WhyNotApplicable)(/*[out, retval]*/ BSTR *pVal);
|
|
|
|
STDMETHOD(get_Count)(/*[out, retval]*/ long *pVal);
|
|
STDMETHOD(get__NewEnum)(/*[out, retval]*/ LPUNKNOWN *pVal);
|
|
STDMETHOD(get_Item)(/*[in]*/ VARIANT Index, /*[out, retval]*/ VARIANT *pVal);
|
|
|
|
void SetSuiteIndex (DWORD dwSuite);
|
|
|
|
private:
|
|
|
|
DWORD m_dwSuiteIndex;
|
|
void SetInvalidSuiteIndex() {m_dwSuiteIndex = 0xffffffff;};
|
|
bool IsValid() const {return m_dwSuiteIndex != 0xffffffff;};
|
|
bool GetTest(const VARIANT &Index, DWORD dwSuiteIndex, PTVerificationTest *ppTest);
|
|
|
|
|
|
};
|
|
|
|
#endif // !defined(AFX_SUITE_H__F1A2E086_3DAE_4F83_ABEA_BF59D1571439__INCLUDED_)
|