iscConfigGetNextSubsSet() 获取下一个预订集的描述(如果有的话)并将游标移动到下一个预订集。
语法
isy_INT32 iscConfigGetNextSubsSet( HISCCONF hConf, HISCCSR hCursor, isy_TCHAR* id, isy_TCHAR* name);
函数自变量
表 128 列示用于
iscConfigGetNextSubsSet() 函数的有效自变量。
表 128. iscConfigGetNextSubsSet() 自变量
数据类型 | 自变量 | 使用 | 描述 |
---|---|---|---|
HISCCONF | hConf | 输入 | 配置连接 |
HISCCSR | hCursor | 输入 | 用于迭代预订集的游标 |
isy_TCHAR* | id | 输出 | 预订集的标识 |
isy_TCHAR* | name | 输出 | 预订集的名称 |
用法
iscConfigGetNextSubsSet() 从服务器获取预订集标识,检索预订集名称(如果有的话)并将游标移动到下一个预订集。
示例:
isy_TCHAR id[ISCLEN_SubsSetID]; isy_TCHAR name[ISCLEN_SubsSetName]; isy_INT32 isReset, isEnabled; HISCCSR hCursor; isy_INT32 rc; // start iteration of all subscription sets rc = iscConfigOpenCursor(hConf, &hCursor); while (rc == ISCRTN_Succeeded) { rc = iscConfigGetNextSubsSet(hConf, hCursor, id, name); if (rc == ISCRTN_Succeeded) { isReset = iscConfigSubsSetIsReset(hConf, id); isEnabled = iscConfigSubsSetIsEnabled(hConf, id); // processing the subscription set ... // get next subscription } // end of processing } // end of iteration iscConfigCloseCursor(hConf, hCursor);
返回码
限制
无。
相关概念
相关任务
相关参考