📄 comacrsrvr.tli
字号:
inline HRESULT IStatus::DelStatus ( long nMsgid ) {
HRESULT _hr = raw_DelStatus(nMsgid);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline long IStatus::GetLocalAddr ( long nProg, long nType, long * nSize ) {
long _result;
HRESULT _hr = raw_GetLocalAddr(nProg, nType, nSize, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IStatus::GetLocalArrayAddr ( long nProg, long nType, long nArray, long * nSize ) {
long _result;
HRESULT _hr = raw_GetLocalArrayAddr(nProg, nType, nArray, nSize, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL IStatus::IsFlagSet ( long nFlagGrp, long nFlagNdx ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_IsFlagSet(nFlagGrp, nFlagNdx, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL IStatus::TestConnect ( ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_TestConnect(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL IStatus::GetParmInfo ( long nParameter, long * nType, long * nCode, long * nIndex, BSTR * bstrCatagory, BSTR * bstrDesc ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_GetParmInfo(nParameter, nType, nCode, nIndex, bstrCatagory, bstrDesc, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT IStatus::SetWatchdog ( long nInterval, long nRetries ) {
HRESULT _hr = raw_SetWatchdog(nInterval, nRetries);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _variant_t IStatus::GetACRGroupRaw ( long nType, long nCode, long nIndex ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_GetACRGroupRaw(nType, nCode, nIndex, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline long IStatus::AddACRGroupRaw ( long nType, long nCode, long nIndex ) {
long _result;
HRESULT _hr = raw_AddACRGroupRaw(nType, nCode, nIndex, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IStatus::GetParmType ( long nParameter ) {
long _result;
HRESULT _hr = raw_GetParmType(nParameter, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IStatus::GetParmAddr ( long nParameter ) {
long _result;
HRESULT _hr = raw_GetParmAddr(nParameter, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface IControl wrapper method implementations
//
inline _bstr_t IControl::GetbstrVersion ( ) {
BSTR _result;
HRESULT _hr = get_bstrVersion(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline long IControl::GetnPort ( ) {
long _result;
HRESULT _hr = get_nPort(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutnPort ( long pVal ) {
HRESULT _hr = put_nPort(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IControl::GetnBPS ( ) {
long _result;
HRESULT _hr = get_nBPS(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutnBPS ( long pVal ) {
HRESULT _hr = put_nBPS(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline _bstr_t IControl::GetbstrIP ( ) {
BSTR _result;
HRESULT _hr = get_bstrIP(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IControl::PutbstrIP ( _bstr_t pVal ) {
HRESULT _hr = put_bstrIP(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IControl::GetnBus ( ) {
long _result;
HRESULT _hr = get_nBus(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutnBus ( long pVal ) {
HRESULT _hr = put_nBus(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IControl::GetisOffline ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_isOffline(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IControl::GetnMoveProfile ( ) {
long _result;
HRESULT _hr = get_nMoveProfile(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutnMoveProfile ( long pVal ) {
HRESULT _hr = put_nMoveProfile(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline float IControl::GetfMoveVEL ( ) {
float _result;
HRESULT _hr = get_fMoveVEL(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutfMoveVEL ( float pVal ) {
HRESULT _hr = put_fMoveVEL(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline float IControl::GetfMoveFVEL ( ) {
float _result;
HRESULT _hr = get_fMoveFVEL(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutfMoveFVEL ( float pVal ) {
HRESULT _hr = put_fMoveFVEL(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline float IControl::GetfMoveACC ( ) {
float _result;
HRESULT _hr = get_fMoveACC(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutfMoveACC ( float pVal ) {
HRESULT _hr = put_fMoveACC(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IControl::GetnMoveMode ( ) {
long _result;
HRESULT _hr = get_nMoveMode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutnMoveMode ( long pVal ) {
HRESULT _hr = put_nMoveMode(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IControl::GetbMoveAbsolute ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_bMoveAbsolute(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutbMoveAbsolute ( VARIANT_BOOL pVal ) {
HRESULT _hr = put_bMoveAbsolute(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IControl::GetnMoveCounter ( ) {
long _result;
HRESULT _hr = get_nMoveCounter(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutnMoveCounter ( long pVal ) {
HRESULT _hr = put_nMoveCounter(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IControl::GetnArcMode ( ) {
long _result;
HRESULT _hr = get_nArcMode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutnArcMode ( long pVal ) {
HRESULT _hr = put_nArcMode(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IControl::GetbArcAbsolute ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_bArcAbsolute(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutbArcAbsolute ( VARIANT_BOOL pVal ) {
HRESULT _hr = put_bArcAbsolute(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IControl::GetbArcCCW ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_bArcCCW(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutbArcCCW ( VARIANT_BOOL pVal ) {
HRESULT _hr = put_bArcCCW(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL IControl::GetbOnConnectTest ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_bOnConnectTest(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void IControl::PutbOnConnectTest ( VARIANT_BOOL pVal ) {
HRESULT _hr = put_bOnConnectTest(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline long IControl::GetnCard ( ) {
long _result;
HRESULT _hr = get_nCard(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT IControl::Disconnect ( ) {
HRESULT _hr = raw_Disconnect();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::Connect ( long nTransport, long nIndex ) {
HRESULT _hr = raw_Connect(nTransport, nIndex);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetFlag ( long nBit, VARIANT_BOOL bValue, VARIANT_BOOL bFast ) {
HRESULT _hr = raw_SetFlag(nBit, bValue, bFast);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetParmFloat ( long nPparm, float fValue, VARIANT_BOOL bFast ) {
HRESULT _hr = raw_SetParmFloat(nPparm, fValue, bFast);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetParmLong ( long nPparm, long nValue, VARIANT_BOOL bFast ) {
HRESULT _hr = raw_SetParmLong(nPparm, nValue, bFast);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetGlobal ( long nCard, long nGlobal, double dValue, VARIANT_BOOL bFast ) {
HRESULT _hr = raw_SetGlobal(nCard, nGlobal, dValue, bFast);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::Move ( long nMask, const _variant_t & targets ) {
HRESULT _hr = raw_Move(nMask, targets);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::Arc ( long nMask, const _variant_t & targets ) {
HRESULT _hr = raw_Arc(nMask, targets);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::Stop ( VARIANT_BOOL bDecel ) {
HRESULT _hr = raw_Stop(bDecel);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SendRES ( long nMask ) {
HRESULT _hr = raw_SendRES(nMask);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline VARIANT_BOOL IControl::TestConnect ( ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_TestConnect(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT IControl::SetWatchdog ( long nInterval, long nRetries ) {
HRESULT _hr = raw_SetWatchdog(nInterval, nRetries);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::GetMoveCounter ( long * nCounter, long * nIncrement ) {
HRESULT _hr = raw_GetMoveCounter(nCounter, nIncrement);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetMoveCounter ( long nCounter, long nIncrement ) {
HRESULT _hr = raw_SetMoveCounter(nCounter, nIncrement);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetACRMemory ( long nType, long nAddress, const _variant_t & values ) {
HRESULT _hr = raw_SetACRMemory(nType, nAddress, values);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetACRMemoryMask ( long nAddress, long nNAND, long nOR ) {
HRESULT _hr = raw_SetACRMemoryMask(nAddress, nNAND, nOR);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetParmLongMask ( long nPparm, long nNAND, long nOR ) {
HRESULT _hr = raw_SetParmLongMask(nPparm, nNAND, nOR);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetFOV ( long nMask, float fValue ) {
HRESULT _hr = raw_SetFOV(nMask, fValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::SetROV ( long nMask, float fValue ) {
HRESULT _hr = raw_SetROV(nMask, fValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IControl::InitPerformance ( ) {
HRESULT _hr = raw_InitPerformance();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _variant_t IControl::GetPerformance ( ) {
VARIANT _result;
VariantInit(&_result);
HRESULT _hr = raw_GetPerformance(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _variant_t(_result, false);
}
inline HRESULT IControl::MoveBatch ( long nType, const _variant_t & moves ) {
HRESULT _hr = raw_MoveBatch(nType, moves);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -