Ovis_Group_Parent_Set()
摘要
指定一个 Ovis 组的父组。
语法
Ovis_Group_Parent_Set (group_ptr, parent_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
group_ptr |
OvisT_Group * |
Ovis 组 |
parent_ptr |
OvisT_Group * |
Ovis 父组 |
返回类型
OvisT_Compcode
若父组可以设置则返回 OvisC_Compcode_Success;否则返回 OvisC_Compcode_Failure。
头文件
ovis_entity.h
详情
该函数访问组的层次结构,并在层次结构中指定该 Ovis 组的父组。
示例
OvisT_Group * parent, * child;
/* …child and parent created elsewhere */
Ovis_Group_Parent_Set (child, parent);
错误
- 子组为 NIL。
参考
- 使用函数
Ovis_Group_Parent_Get()可以获取组的父组。 - 使用函数
Ovis_Group_Child_Group_Count()可以获取组的子组数量。 - 使用函数
Ovis_Group_Child_Group_Nth()可以获取组的某个子组。