[#BloombergLP-ball-CategoryManager-addCategory-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/CategoryManager.adoc[CategoryManager]::addCategory :relfileprefix: ../../../ :mrdocs: 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Category.adoc[Category]* xref:BloombergLP/ball/CategoryManager/addCategory-07.adoc[addCategory]( char const* categoryName, int recordLevel, int passLevel, int triggerLevel, int triggerAllLevel); ---- [.small]#xref:BloombergLP/ball/CategoryManager/addCategory-07.adoc[_» more..._]# Add a category with the specified name and threshold levels. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/Category.adoc[Category]* xref:BloombergLP/ball/CategoryManager/addCategory-0e.adoc[addCategory]( xref:BloombergLP/ball/CategoryHolder.adoc[CategoryHolder]* categoryHolder, char const* categoryName, int recordLevel, int passLevel, int triggerLevel, int triggerAllLevel); ---- [.small]#xref:BloombergLP/ball/CategoryManager/addCategory-0e.adoc[_» more..._]# == Return Value address of the newly‐created category on success, and 0 otherwise == Parameters [cols="1,4"] |=== | 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#