Ovis_Group_Parent_Get()
Abstract
Returns the parent of an Ovis group.
Syntax
Ovis_Group_Parent_Get (group_ptr)
| Argument | Type | Description |
|---|---|---|
group_ptr |
OvisT_Group * |
Ovis group |
Return Type
OvisT_Group *
Pointer to the parent group
Header
ovis_entity.h
Details
This function accesses the group hierarchy and returns the parent of the Ovis group.
Example
OvisT_Group * parent, * child;
/* …child created elsewhere */
parent = Ovis_Group_Parent_Get (child);
Errors
- Group is NIL.
Reference
- Use the function
Ovis_Group_Child_Group_Count()to get the number of child groups of a group. - Use the function
Ovis_Group_Child_Group_Nth()to get one child group of a group.