ホーム › Storage.Packaging.Opc › IOpcRelationshipSet
IOpcRelationshipSet
COMメソッド 7
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetRelationship(LPWSTR relationshipIdentifier, IOpcRelationship** relationship)
| relationshipIdentifier | LPWSTR | in | 取得するリレーションシップの識別子を指定する、NULL 終端のワイド文字列である。 |
| relationship | IOpcRelationship** | out | 指定した識別子に対応するリレーションシップ IOpcRelationship を受け取るポインタである。 |
vtbl 4 HRESULT CreateRelationship(LPWSTR relationshipIdentifier, LPWSTR relationshipType, IUri* targetUri, OPC_URI_TARGET_MODE targetMode, IOpcRelationship** relationship)
| relationshipIdentifier | LPWSTR | in | 作成するリレーションシップの識別子を指定する、NULL 終端のワイド文字列である。NULL を渡すと識別子が自動生成される。 |
| relationshipType | LPWSTR | in | 作成するリレーションシップの種類を表す型 URI を指定する、NULL 終端のワイド文字列である。 |
| targetUri | IUri* | in | リレーションシップの対象を指す URI を指定する IUri へのポインタである。 |
| targetMode | OPC_URI_TARGET_MODE | in | 対象が内部パートか外部リソースかを示す OPC_URI_TARGET_MODE 値である。 |
| relationship | IOpcRelationship** | out | 作成されたリレーションシップ IOpcRelationship を受け取るポインタである。 |
| relationshipIdentifier | LPWSTR | in | 削除するリレーションシップの識別子を指定する、NULL 終端のワイド文字列である。 |
| relationshipIdentifier | LPWSTR | in | 存在を確認するリレーションシップの識別子を指定する、NULL 終端のワイド文字列である。 |
| relationshipExists | BOOL* | out | 指定したリレーションシップが存在するかどうかを受け取る BOOL へのポインタである。 |
vtbl 7 HRESULT GetEnumerator(IOpcRelationshipEnumerator** relationshipEnumerator)
| relationshipEnumerator | IOpcRelationshipEnumerator** | out | リレーションシップセット内の全リレーションシップを列挙する IOpcRelationshipEnumerator を受け取るポインタである。 |
vtbl 8 HRESULT GetEnumeratorForType(LPWSTR relationshipType, IOpcRelationshipEnumerator** relationshipEnumerator)
| relationshipType | LPWSTR | in | 列挙対象を絞り込むリレーションシップの種類を表す型 URI を指定する、NULL 終端のワイド文字列である。 |
| relationshipEnumerator | IOpcRelationshipEnumerator** | out | 指定した種類のリレーションシップのみを列挙する IOpcRelationshipEnumerator を受け取るポインタである。 |
| contents | IStream** | out | リレーションシップ群を表すリレーションシップパートの内容を読み取る IStream を受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IOpcRelationshipSet "{42195949-3B79-4FC8-89C6-FC7FB979EE74}" #usecom global IOpcRelationshipSet IID_IOpcRelationshipSet "{}" #comfunc global IOpcRelationshipSet_GetRelationship 3 wstr,sptr #comfunc global IOpcRelationshipSet_CreateRelationship 4 wstr,wstr,sptr,int,sptr #comfunc global IOpcRelationshipSet_DeleteRelationship 5 wstr #comfunc global IOpcRelationshipSet_RelationshipExists 6 wstr,var #comfunc global IOpcRelationshipSet_GetEnumerator 7 sptr #comfunc global IOpcRelationshipSet_GetEnumeratorForType 8 wstr,sptr #comfunc global IOpcRelationshipSet_GetRelationshipsContentStream 9 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IOpcRelationshipSet "{42195949-3B79-4FC8-89C6-FC7FB979EE74}" #usecom global IOpcRelationshipSet IID_IOpcRelationshipSet "{}" #comfunc global IOpcRelationshipSet_GetRelationship 3 wstr,sptr #comfunc global IOpcRelationshipSet_CreateRelationship 4 wstr,wstr,sptr,int,sptr #comfunc global IOpcRelationshipSet_DeleteRelationship 5 wstr #comfunc global IOpcRelationshipSet_RelationshipExists 6 wstr,sptr #comfunc global IOpcRelationshipSet_GetEnumerator 7 sptr #comfunc global IOpcRelationshipSet_GetEnumeratorForType 8 wstr,sptr #comfunc global IOpcRelationshipSet_GetRelationshipsContentStream 9 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。