[#BloombergLP-ball-Category-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Category.adoc[Category]::Category :relfileprefix: ../../../ :mrdocs: Create a category having the specified name and threshold levels. == Synopsis Declared in `<ball_category.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Category( std::string_view const& categoryName, int recordLevel, int passLevel, int triggerLevel, int triggerAllLevel, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Create a category having the specified `categoryName` and the specified `recordLevel`, `passLevel`, `triggerLevel`, and `triggerAllLevel` threshold values, respectively. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless each of the specified threshold levels is in the range `[0 .. 255]`. == Parameters [cols="1,4"] |=== | Name| Description | *categoryName* | name of the category | *recordLevel* | record threshold level | *passLevel* | pass threshold level | *triggerLevel* | trigger threshold level | *triggerAllLevel* | trigger‐all threshold level | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#