Quick Links:

bal | bbl | bdl | bsl

Static Public Member Functions

ball::CategoryManagerImpUtil Class Reference

#include <ball_category.h>

List of all members.

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 Component ball_category


Member Function Documentation

static void ball::CategoryManagerImpUtil::linkCategoryHolder ( Category category,
CategoryHolder categoryHolder 
) [static]

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.

static void ball::CategoryManagerImpUtil::resetCategoryHolders ( Category category  )  [static]

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.

static void ball::CategoryManagerImpUtil::updateThresholdForHolders ( Category category  )  [static]

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.

static void ball::CategoryManagerImpUtil::setRuleThreshold ( Category category,
int  ruleThreshold 
) [static]

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

static void ball::CategoryManagerImpUtil::enableRule ( Category category,
int  ruleIndex 
) [static]

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

static void ball::CategoryManagerImpUtil::disableRule ( Category category,
int  ruleIndex 
) [static]

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

static void ball::CategoryManagerImpUtil::setRelevantRuleMask ( Category category,
RuleSet::MaskType  mask 
) [static]

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


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