⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pqdcom4.tli

📁 一个PQDIF的测试用例
💻 TLI
📖 第 1 页 / 共 4 页
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (7fadfa71).
//
// PQDcom4.tli
//
// Wrapper implementations for Win32 type library D:\yyxhy\电力项目\projecttool\PQdifTest\Debug\PQDcom4.dll
// compiler-generated file created 04/25/08 at 16:52:17 - DO NOT EDIT!

#pragma once

//
// interface IPQDIFPhysical wrapper method implementations
//

inline _bstr_t IPQDIFPhysical::GetFlatFileName ( ) {
    BSTR _result;
    HRESULT _hr = get_FlatFileName(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

inline void IPQDIFPhysical::PutFlatFileName ( _bstr_t pVal ) {
    HRESULT _hr = put_FlatFileName(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IPQDIFPhysical::GetCompressionAlgorithm ( ) {
    long _result;
    HRESULT _hr = get_CompressionAlgorithm(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IPQDIFPhysical::PutCompressionAlgorithm ( long pVal ) {
    HRESULT _hr = put_CompressionAlgorithm(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IPQDIFPhysical::GetCompressionStyle ( ) {
    long _result;
    HRESULT _hr = get_CompressionStyle(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IPQDIFPhysical::PutCompressionStyle ( long pVal ) {
    HRESULT _hr = put_CompressionStyle(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IPQDIFPhysical::GetCanWriteIncremental ( ) {
    long _result;
    HRESULT _hr = get_CanWriteIncremental(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IPQDIFPhysical::PutCanWriteIncremental ( long pVal ) {
    HRESULT _hr = put_CanWriteIncremental(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IPQDIFPhysical::GetTagCount ( ) {
    long _result;
    HRESULT _hr = get_TagCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline void IPQDIFPhysical::PutTagCount ( long pVal ) {
    HRESULT _hr = put_TagCount(pVal);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

inline long IPQDIFPhysical::Read ( ) {
    long _result;
    HRESULT _hr = raw_Read(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::Close ( ) {
    long _result;
    HRESULT _hr = raw_Close(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::RecordGetCount ( ) {
    long _result;
    HRESULT _hr = raw_RecordGetCount(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::RecordGetInfo ( long index, VARIANT * tagRecordType, BSTR * nameRecordType, long * sizeHeader, long * sizeRecord, long * posThisRecord, long * posNextRecord ) {
    long _result;
    HRESULT _hr = raw_RecordGetInfo(index, tagRecordType, nameRecordType, sizeHeader, sizeRecord, posThisRecord, posNextRecord, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::RecordGetCollection ( long index, long * pElement ) {
    long _result;
    HRESULT _hr = raw_RecordGetCollection(index, pElement, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementGetTag ( long pElement, VARIANT * tagElement, BSTR * nameTagElement ) {
    long _result;
    HRESULT _hr = raw_ElementGetTag(pElement, tagElement, nameTagElement, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementGetType ( long pElement, long * typeElement, long * typePhysical ) {
    long _result;
    HRESULT _hr = raw_ElementGetType(pElement, typeElement, typePhysical, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementGetScalarData ( long pElement, VARIANT * data ) {
    long _result;
    HRESULT _hr = raw_ElementGetScalarData(pElement, data, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementGetVectorData ( long pElement, long index, VARIANT * data ) {
    long _result;
    HRESULT _hr = raw_ElementGetVectorData(pElement, index, data, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementGetVectorCount ( long pElement, long * count ) {
    long _result;
    HRESULT _hr = raw_ElementGetVectorCount(pElement, count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementCreate ( long typeElement, long * pElement ) {
    long _result;
    HRESULT _hr = raw_ElementCreate(typeElement, pElement, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementDestroy ( long pElement ) {
    long _result;
    HRESULT _hr = raw_ElementDestroy(pElement, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::CollectionGetCount ( long pCollection, long * count ) {
    long _result;
    HRESULT _hr = raw_CollectionGetCount(pCollection, count, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::CollectionGetEntry ( long pCollection, long index, long * pElement ) {
    long _result;
    HRESULT _hr = raw_CollectionGetEntry(pCollection, index, pElement, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::CollectionAddEntry ( long pCollection, long pElement ) {
    long _result;
    HRESULT _hr = raw_CollectionAddEntry(pCollection, pElement, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::CollectionInsertEntry ( long pCollection, long indexToInsert, long pElement ) {
    long _result;
    HRESULT _hr = raw_CollectionInsertEntry(pCollection, indexToInsert, pElement, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::CollectionRemoveEntry ( long pCollection, long index ) {
    long _result;
    HRESULT _hr = raw_CollectionRemoveEntry(pCollection, index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::CollectionDestroyEntry ( long pCollection, long index ) {
    long _result;
    HRESULT _hr = raw_CollectionDestroyEntry(pCollection, index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::WriteNew ( ) {
    long _result;
    HRESULT _hr = raw_WriteNew(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::WriteIncremental ( ) {
    long _result;
    HRESULT _hr = raw_WriteIncremental(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementGetVectorArray ( long pElement, VARIANT * values ) {
    long _result;
    HRESULT _hr = raw_ElementGetVectorArray(pElement, values, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementIsString ( long pElement ) {
    long _result;
    HRESULT _hr = raw_ElementIsString(pElement, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ElementGetString ( long pElement, BSTR * value ) {
    long _result;
    HRESULT _hr = raw_ElementGetString(pElement, value, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::RecordCreateByNameInsert ( BSTR * nameTagRecordType, long indexToInsert ) {
    long _result;
    HRESULT _hr = raw_RecordCreateByNameInsert(nameTagRecordType, indexToInsert, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::RecordDestroy ( long index ) {
    long _result;
    HRESULT _hr = raw_RecordDestroy(index, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ScalarSetValue ( long pScalar, VARIANT * value ) {
    long _result;
    HRESULT _hr = raw_ScalarSetValue(pScalar, value, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::VectorSetString ( long pVector, BSTR * value ) {
    long _result;
    HRESULT _hr = raw_VectorSetString(pVector, value, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::VectorSetArray ( long pVector, VARIANT * values ) {
    long _result;
    HRESULT _hr = raw_VectorSetArray(pVector, values, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::ReadChunk ( VARIANT * chunkPQDIF ) {
    long _result;
    HRESULT _hr = raw_ReadChunk(chunkPQDIF, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

inline long IPQDIFPhysical::WriteChunk ( VARIANT * chunkPQDIF ) {
    long _result;
    HRESULT _hr = raw_WriteChunk(chunkPQDIF, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -