📄 pqdcom4.tli
字号:
inline long IPQDIFPhysical::New ( ) {
long _result;
HRESULT _hr = raw_New(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::ObservationGetSeriesData ( long pRecordObserv, long idxChannel, long idxSeries, VARIANT * values ) {
long _result;
HRESULT _hr = raw_ObservationGetSeriesData(pRecordObserv, idxChannel, idxSeries, values, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::ObservationGetInfo ( long pRecordObserv, DATE * timeStart, BSTR * name, long * countChannels ) {
long _result;
HRESULT _hr = raw_ObservationGetInfo(pRecordObserv, timeStart, name, countChannels, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::ObservationGetChannelInfo ( long pRecordObserv, long idxChannel, BSTR * name, long * idPhase, VARIANT * idQuantityType, long * countSeries ) {
long _result;
HRESULT _hr = raw_ObservationGetChannelInfo(pRecordObserv, idxChannel, name, idPhase, idQuantityType, countSeries, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::ObservationGetSeriesInfo ( long pRecordObserv, long idxChannel, long idxSeries, long * idQuantityUnits, VARIANT * idValueType ) {
long _result;
HRESULT _hr = raw_ObservationGetSeriesInfo(pRecordObserv, idxChannel, idxSeries, idQuantityUnits, idValueType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordReleaseObservation ( long pRecordObserv ) {
long _result;
HRESULT _hr = raw_RecordReleaseObservation(pRecordObserv, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordRequestObservation ( long index, long * pRecordObserv ) {
long _result;
HRESULT _hr = raw_RecordRequestObservation(index, pRecordObserv, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::ObservationGetTriggerInfo ( long pRecordObserv, long * idTriggerMethod, VARIANT * aidxTriggerChannels, DATE * timeTriggered ) {
long _result;
HRESULT _hr = raw_ObservationGetTriggerInfo(pRecordObserv, idTriggerMethod, aidxTriggerChannels, timeTriggered, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::ObservationGetSeriesBaseQty ( long pRecordObserv, long idxChannel, long idxSeries, double * value ) {
long _result;
HRESULT _hr = raw_ObservationGetSeriesBaseQty(pRecordObserv, idxChannel, idxSeries, value, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::ObservationSetSeriesBaseQty ( long pRecordObserv, long idxChannel, long idxSeries, double value ) {
long _result;
HRESULT _hr = raw_ObservationSetSeriesBaseQty(pRecordObserv, idxChannel, idxSeries, value, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordCreateContainer ( BSTR * language, BSTR * title, BSTR * subject, BSTR * author, BSTR * keywords, BSTR * comments, BSTR * lastSavedBy, BSTR * application, BSTR * security, BSTR * owner, BSTR * copyright, BSTR * trademark, BSTR * notes ) {
long _result;
HRESULT _hr = raw_RecordCreateContainer(language, title, subject, author, keywords, comments, lastSavedBy, application, security, owner, copyright, trademark, notes, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordCreateDataSource ( long indexInsert, VARIANT * idDataSourceType, VARIANT * idVendor, VARIANT * idEquipment, BSTR * serialNumberDS, BSTR * versionDS, BSTR * nameDS, BSTR * ownerDS, BSTR * locationDS, BSTR * timeZoneDS ) {
long _result;
HRESULT _hr = raw_RecordCreateDataSource(indexInsert, idDataSourceType, idVendor, idEquipment, serialNumberDS, versionDS, nameDS, ownerDS, locationDS, timeZoneDS, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordCreateObservation ( long indexInsert, BSTR * name, DATE timeCreate, DATE timeStart, long idTriggerMethod, DATE timeTriggered, VARIANT * aidxChannelTrigger ) {
long _result;
HRESULT _hr = raw_RecordCreateObservation(indexInsert, name, timeCreate, timeStart, idTriggerMethod, timeTriggered, aidxChannelTrigger, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordRequestDataSource ( long index, long * pRecordDS ) {
long _result;
HRESULT _hr = raw_RecordRequestDataSource(index, pRecordDS, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordReleaseDataSource ( long pRecordDS ) {
long _result;
HRESULT _hr = raw_RecordReleaseDataSource(pRecordDS, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::DataSourceAddChannelDefn ( long pRecordDS, BSTR * name, long idPhase, VARIANT * idQuantityType ) {
long _result;
HRESULT _hr = raw_DataSourceAddChannelDefn(pRecordDS, name, idPhase, idQuantityType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::DataSourceAddSeriesDefn ( long pRecordDS, long idxChannelDefn, long idQuantityUnits, VARIANT * idValueType, long idStorageMethod ) {
long _result;
HRESULT _hr = raw_DataSourceAddSeriesDefn(pRecordDS, idxChannelDefn, idQuantityUnits, idValueType, idStorageMethod, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::ObservationAddSeriesDouble ( long pRecordObs, long idxChannel, VARIANT * arValues ) {
long _result;
HRESULT _hr = raw_ObservationAddSeriesDouble(pRecordObs, idxChannel, arValues, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::ObservationAddChannel ( long pRecordObs, long idxChannelDefn ) {
long _result;
HRESULT _hr = raw_ObservationAddChannel(pRecordObs, idxChannelDefn, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordRequestSettings ( long idxRecord, long * pRecordSettings ) {
long _result;
HRESULT _hr = raw_RecordRequestSettings(idxRecord, pRecordSettings, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordReleaseSettings ( long pRecordSettings ) {
long _result;
HRESULT _hr = raw_RecordReleaseSettings(pRecordSettings, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::SettingsSetChanTrans ( long pRecordSettings, long idxChannel, long xdTransformerTypeID, double xdSystemSideRatio, double xdMonitorSideRatio, VARIANT * xdFreqResponse ) {
long _result;
HRESULT _hr = raw_SettingsSetChanTrans(pRecordSettings, idxChannel, xdTransformerTypeID, xdSystemSideRatio, xdMonitorSideRatio, xdFreqResponse, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::SettingsSetChanCal ( long pRecordSettings, long idxChannel, double calTimeSkew, double calOffset, double calRatio, long calMustUseARCal, VARIANT * calApplied, VARIANT * calRecorded ) {
long _result;
HRESULT _hr = raw_SettingsSetChanCal(pRecordSettings, idxChannel, calTimeSkew, calOffset, calRatio, calMustUseARCal, calApplied, calRecorded, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::SettingsGetChanCount ( long pRecordSettings ) {
long _result;
HRESULT _hr = raw_SettingsGetChanCount(pRecordSettings, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::SettingsGetChannel ( long pRecordSettings, long idxChannel, long * idxChannelDefn, long * triggerTypeID, double * fullScale, double * noiseFloor, double * triggerLow, double * triggerHigh, double * triggerRate, VARIANT * triggerShapeParam ) {
long _result;
HRESULT _hr = raw_SettingsGetChannel(pRecordSettings, idxChannel, idxChannelDefn, triggerTypeID, fullScale, noiseFloor, triggerLow, triggerHigh, triggerRate, triggerShapeParam, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::SettingsGetChanTrans ( long pRecordSettings, long idxChannel, long * xdTransformerTypeID, double * xdSystemSideRatio, double * xdMonitorSideRatio, VARIANT * xdFreqResponse ) {
long _result;
HRESULT _hr = raw_SettingsGetChanTrans(pRecordSettings, idxChannel, xdTransformerTypeID, xdSystemSideRatio, xdMonitorSideRatio, xdFreqResponse, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::SettingsGetChanCal ( long pRecordSettings, long idxChannel, double * calTimeSkew, double * calOffset, double * calRatio, long * calMustUseARCal, VARIANT * calApplied, VARIANT * calRecorded ) {
long _result;
HRESULT _hr = raw_SettingsGetChanCal(pRecordSettings, idxChannel, calTimeSkew, calOffset, calRatio, calMustUseARCal, calApplied, calRecorded, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::RecordCreateSettings ( long indexInsert, DATE timeEffective, DATE timeInstalled, DATE timeRemoved, long useCal, long useTrans ) {
long _result;
HRESULT _hr = raw_RecordCreateSettings(indexInsert, timeEffective, timeInstalled, timeRemoved, useCal, useTrans, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::SettingsGetInfo ( long pRecordSettings, DATE * timeEffective, DATE * timeInstalled, DATE * timeRemoved, long * useCal, long * useTrans ) {
long _result;
HRESULT _hr = raw_SettingsGetInfo(pRecordSettings, timeEffective, timeInstalled, timeRemoved, useCal, useTrans, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFPhysical::DataSourceGetInfo ( long precDS, VARIANT * idDataSourceType, VARIANT * idVendor, VARIANT * idEquipment, BSTR * serialNumberDS, BSTR * versionDS, BSTR * nameDS, BSTR * ownerDS, BSTR * locationDS, BSTR * timeZoneDS ) {
long _result;
HRESULT _hr = raw_DataSourceGetInfo(precDS, idDataSourceType, idVendor, idEquipment, serialNumberDS, versionDS, nameDS, ownerDS, locationDS, timeZoneDS, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline _bstr_t IPQDIFPhysical::GetTagName ( long index ) {
BSTR _result;
HRESULT _hr = get_TagName(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline void IPQDIFPhysical::PutTagName ( long index, _bstr_t pVal ) {
HRESULT _hr = put_TagName(index, pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface IPQDIFLogical wrapper method implementations
//
inline long IPQDIFLogical::RecordGetInfo2 ( long index, VARIANT * tagRecordType, BSTR * nameRecordType, long * sizeHeader, long * sizeRecord, long * posThisRecord, long * posNextRecord ) {
long _result;
HRESULT _hr = raw_RecordGetInfo2(index, tagRecordType, nameRecordType, sizeHeader, sizeRecord, posThisRecord, posNextRecord, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFLogical::RecordCreateContainer2 ( _bstr_t language, _bstr_t title, _bstr_t subject, _bstr_t author, _bstr_t keywords, _bstr_t comments, _bstr_t lastSavedBy, _bstr_t application, _bstr_t security, _bstr_t owner, _bstr_t copyright, _bstr_t trademark, _bstr_t notes ) {
long _result;
HRESULT _hr = raw_RecordCreateContainer2(language, title, subject, author, keywords, comments, lastSavedBy, application, security, owner, copyright, trademark, notes, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFLogical::RecordCreateContainer3 ( _bstr_t bstrFileName, DATE dtCreate, long ulMajor, long ulMinor, long ulCompatMajor, long ulCompatMinor ) {
long _result;
HRESULT _hr = raw_RecordCreateContainer3(bstrFileName, dtCreate, ulMajor, ulMinor, ulCompatMajor, ulCompatMinor, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFLogical::ContainerSetInfo ( _bstr_t language, _bstr_t title, _bstr_t subject, _bstr_t author, _bstr_t keywords, _bstr_t comments, _bstr_t lastSavedBy, _bstr_t application, _bstr_t security, _bstr_t owner, _bstr_t copyright, _bstr_t trademark, _bstr_t notes ) {
long _result;
HRESULT _hr = raw_ContainerSetInfo(language, title, subject, author, keywords, comments, lastSavedBy, application, security, owner, copyright, trademark, notes, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFLogical::ObservationGetSettings ( long pRecObs, long * pSettings ) {
long _result;
HRESULT _hr = raw_ObservationGetSettings(pRecObs, pSettings, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFLogical::RecordCreateDataSource2 ( long indexInsert, VARIANT * idDataSourceType, VARIANT * idVendor, VARIANT * idEquipment, _bstr_t serialNumberDS, _bstr_t versionDS, _bstr_t nameDS, _bstr_t ownerDS, _bstr_t locationDS, _bstr_t timeZoneDS ) {
long _result;
HRESULT _hr = raw_RecordCreateDataSource2(indexInsert, idDataSourceType, idVendor, idEquipment, serialNumberDS, versionDS, nameDS, ownerDS, locationDS, timeZoneDS, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFLogical::DataSourceAddChannelDefn2 ( long pRecordDS, _bstr_t name, long idPhase, VARIANT * idQuantityType ) {
long _result;
HRESULT _hr = raw_DataSourceAddChannelDefn2(pRecordDS, name, idPhase, idQuantityType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline long IPQDIFLogical::DataSourceAddChannelDefn3 ( long pRecordDS, _bstr_t name, long idPhase, long idQM, VARIANT * idQuantityType ) {
long _result;
HRESULT _hr = raw_DataSourceAddChannelDefn3(pRecordDS, name, idPhase, idQM, idQuantityType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -