[#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&period;

== Synopses

Declared in `&lt;ball&lowbar;categorymanager&period;h&gt;`

Add a category with the specified name and threshold levels&period;


[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&period;&period;&period;_]#

Add a category with the specified name and threshold levels&period;


[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&period;&period;&period;_]#

== Return Value

address of the newly&hyphen;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&hyphen;all threshold level for the new category
| *categoryHolder*
| optional holder to load with the category
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
