![]() | InstrumentInFamily |
Indicates if the current instrument is a member of the specified family.
bool InstrumentInFamily(const CString& strFamily) const;
[in] Instrument family to test against.
Returns true if the current model is in the specified family.
The following example demonstrates use of the InstrumentInFamily function.
// 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; }