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