Click or drag to resize

InstrumentInFamily

Indicates if the current instrument is a member of the specified family.

bool InstrumentInFamily(const CString& strFamily) const;
Parameters
strFamily

[in] Instrument family to test against.

Return Value

Returns true if the current model is in the specified family.

Example

The following example demonstrates use of the InstrumentInFamily function.

C++
// CoAcme4321.cpp
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;
}
See Also

Download a complete CHM version of this documentation here.