GetRoot
Gets a pointer to the main driver class.
Syntax
Section titled “Syntax”template <typename T>T* GetRoot() const;Return value
Section titled “Return value”Returns a pointer to the main driver class.
Remarks
Section titled “Remarks”This function always returns a pointer to the main driver class, even if it is called from the main driver. Thus, GetRoot is safe to call from any driver function.
Example
Section titled “Example”The following example demonstrates use of the GetRoot function.
HRESULT Acme4321Channel::Configure(double dOffset){ HRESULT hr = S_OK;
Acme4321* pRoot = GetRoot();
return hr;}