/******************************************************************************
 *                                                                         
 *               Nimbus auto-generated file
 *               !!! WARNING !!! -- DO NOT DIRECTLY EDIT THE CONTENTS OF THIS FILE.
 *				 Changes will be OVERWRITTEN by NIMBUS.
 *
 *****************************************************************************/

#include "stdafx.h"
#include "CoAgilent34980AChannel.h"



///////////////////////////////////////////////////////////////
//
//   Repeated capability support
//

HRESULT CObjectModelNode<Agilent34980AChannel, Agilent34980A, Agilent34980A>::InitNode(Agilent34980A* pRoot, Agilent34980A* pParent)
{
	HRESULT hr = S_OK;

	ResetObjectState();
	
	SetClassName(_T("Agilent34980AChannel"));
	SetRoot(pRoot);
	SetParent(pParent);

	return hr;
}

HRESULT CObjectModelNode<Agilent34980AChannel, Agilent34980A, Agilent34980A>::CloseNode()			
{
	HRESULT hr = S_OK;

	SetRoot(NULL);
	SetParent(NULL);
	
	return hr;
}



const CString* CRepCap<Agilent34980AChannel, Agilent34980A, Agilent34980A>::GetStaticRepCapNames()
{
	static const CString _names[] = 
	{
		CString(_T("")) 
	};

	return _names;
}

///////////////////////////////////////////////////////////////////////////////
//
//	COM rich error support
//

STDMETHODIMP Agilent34980AChannel::InterfaceSupportsErrorInfo(REFIID riid)
{
	static const IID* arr[] = 
	{
		&__uuidof(IIviSwtchChannel),
		&__uuidof(IIviSwtchCharacteristics)
	};

	for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		if (InlineIsEqualGUID(*arr[i],riid))
			return S_OK;
	}
	return S_FALSE;
}

