Add a category with the specified name and threshold levels.

Synopses

Declared in <ball_categorymanager.h>

Add a category with the specified name and threshold levels.

Category*
addCategory(
    char const* categoryName,
    int recordLevel,
    int passLevel,
    int triggerLevel,
    int triggerAllLevel);

Add a category with the specified name and threshold levels.

Category*
addCategory(
    CategoryHolder* categoryHolder,
    char const* categoryName,
    int recordLevel,
    int passLevel,
    int triggerLevel,
    int triggerAllLevel);

Return Value

address of the newly‐created category on success, and 0 otherwise

Parameters

Name

Description

categoryName

name of the category to add

recordLevel

record threshold level for the new category

passLevel

pass threshold level for the new category

triggerLevel

trigger threshold level for the new category

triggerAllLevel

trigger‐all threshold level for the new category

categoryHolder

optional holder to load with the category

Created with MrDocs