Module UnitCategories
This part of BtUtils is supposed to take care of unit categories definitions.
Functions
getAllCategoryNames () | Returns array of names of available categories. |
getCategoryTypes (qualifiedName) | Get types in given category. |
loadCategory (qualifiedName) | Returns entry corresponding to a given category. |
saveCategory (catDefinition) | Saves a category. |
Functions
- getAllCategoryNames ()
-
Returns array of names of available categories.
Returns:
- getCategoryTypes (qualifiedName)
-
Get types in given category.
Parameters:
- qualifiedName string Qualified name of the category.
Returns:
-
{tab}
List of tables with
name
of units in the category. - loadCategory (qualifiedName)
-
Returns entry corresponding to a given category.
Parameters:
- qualifiedName string Qualified name of the category.
Returns:
-
tab
Table containing a list of tables in
types
that describe thename
of units in the category. - saveCategory (catDefinition)
-
Saves a category.
Parameters:
- catDefinition
tab
Category definition containing
project
name, categoryname
andtypes
containing list ofname
s of the units.
- catDefinition
tab
Category definition containing