BDE 4.14.0 Production release
Loading...
Searching...
No Matches
ball::CategoryManagerImpUtil Class Reference

#include <ball_category.h>

Static Public Member Functions

static void linkCategoryHolder (Category *category, CategoryHolder *categoryHolder)
 
static void resetCategoryHolders (Category *category)
 
static void updateThresholdForHolders (Category *category)
 
static void setRuleThreshold (Category *category, int ruleThreshold)
 
static void enableRule (Category *category, int ruleIndex)
 
static void disableRule (Category *category, int ruleIndex)
 
static void setRelevantRuleMask (Category *category, RuleSet::MaskType mask)
 

Detailed Description

This class provides a suite of free functions used to help implement a manager of categories and category holders.

This class should not be used directly by client code. It is an implementation detail of the ball logging system.

See ball_category

Member Function Documentation

◆ disableRule()

void ball::CategoryManagerImpUtil::disableRule ( Category category,
int  ruleIndex 
)
inlinestatic

Set the bit in the rule-mask at the specified ruleIndex in the specified category to false.

◆ enableRule()

void ball::CategoryManagerImpUtil::enableRule ( Category category,
int  ruleIndex 
)
inlinestatic

Set the bit in the relevant rule-mask at the specified ruleIndex in the specified category to true.

◆ linkCategoryHolder()

void ball::CategoryManagerImpUtil::linkCategoryHolder ( Category category,
CategoryHolder categoryHolder 
)
inlinestatic

Load the specified category and its corresponding maxLevel() into the specified categoryHolder, and add categoryHolder to the linked list of category holders maintained by category.

◆ resetCategoryHolders()

void ball::CategoryManagerImpUtil::resetCategoryHolders ( Category category)
inlinestatic

Reset the category holders to which the specified category is linked to their default value. See the function-level documentation of CategoryHolder::reset for further information on the default value of category holders.

◆ setRelevantRuleMask()

void ball::CategoryManagerImpUtil::setRelevantRuleMask ( Category category,
RuleSet::MaskType  mask 
)
inlinestatic

Set the rule-mask for the specified category to the specified mask.

◆ setRuleThreshold()

void ball::CategoryManagerImpUtil::setRuleThreshold ( Category category,
int  ruleThreshold 
)
inlinestatic

Set the cached rule threshold for the specified category to the specified ruleThreshold.

◆ updateThresholdForHolders()

void ball::CategoryManagerImpUtil::updateThresholdForHolders ( Category category)
inlinestatic

Update the threshold of all category holders that hold the address of the specified category object to the maximum of d_threshold and d_ruleThreshold.


The documentation for this class was generated from the following file: