[in] Instrument family to test against.
InstrumentInFamily
Indicates if the current instrument is a member of the specified family.
Syntax
Section titled “Syntax”bool InstrumentInFamily(const CString& strFamily) const;Parameters
Section titled “Parameters”strFamily
Return value
Section titled “Return value”Returns true if the current model is in the specified family.
Example
Section titled “Example”The following example demonstrates use of the InstrumentInFamily function.
HRESULT Acme4321::Configure(){ HRESULT hr = S_OK;
// This method is NOT supported by any models that are part of the "Acme4200" family. if (InstrumentInFamily(_T("Acme4200"))) return err.ModelNotSupported(GetModel());
hr = InstrPrintCommand();
return hr;}