GetParent
Gets the parent repeated capability instance.
Syntax
Section titled “Syntax”template <typename T>T* GetParent() const;Return value
Section titled “Return value”Returns a pointer to the parent repeated capability instance.
Remarks
Section titled “Remarks”If the calling code is not on a repeated capability or the calling code is on the main driver class, this function returns a pointer to the main driver class. Thus, GetParent is safe to call from any driver function.
Example
Section titled “Example”The following example demonstrates use of the GetParent function.
HRESULT Acme4321Channel::Configure(double dOffset){ HRESULT hr = S_OK;
CString strParentName = GetParent()->GetInstanceName();
return hr;}