BloombergLP::ball::Category::Category

Create a category having the specified name and threshold levels.

Synopsis

Declared in <ball_category.h>

Category(
    std::string_view const& categoryName,
    int recordLevel,
    int passLevel,
    int triggerLevel,
    int triggerAllLevel,
    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

NameDescription
categoryNamename of the category
recordLevelrecord threshold level
passLevelpass threshold level
triggerLeveltrigger threshold level
triggerAllLeveltrigger-all threshold level
basicAllocatormemory allocator; null uses the default