This class provides a mechanism for representing a category. A category is an identifier used to group related metrics. A Category object contains the address of a null‐terminated string, name, holding the name of the category and a boolean value, enabled, indicating whether the category is currently enabled.
Synopsis
Declared in <balm_category.h>
class Category;
Member Functions
Name |
Description |
|
Create a category having the specified |
|
Destroy this category object. |
Report whether this category is enabled. This function is fully thread‐safe. |
|
Return a reference to a const value indicating the enabled status of this category, allowing downstream uses to minimize latency by avoiding indirection through abstracted interfaces, albeit at some risk of object‐lifetime violations. The returned reference must not be allowed to outlive this category object. |
|
Return the address of the non‐modifiable null‐terminated string containing the name of this category. |
|
Print this category to the specified output |
|
Load into the specified |
|
Set the |
|
Set the name of this metric to the specified |
Created with MrDocs