BDE 4.14.0 Production release
Loading...
Searching...
No Matches
balm::Metric_MacroImp Struct Reference

#include <balm_metric.h>

Static Public Member Functions

static void getCollector (Collector **collector, CategoryHolder *holder, const char *category, const char *metric)
 
static void getCollector (Collector **collector, CategoryHolder *holder, const char *category, const char *metric, PublicationType::Value preferredPublicationType)
 

Detailed Description

This structure provides a namespace for functions used to implement the macros defined by this component.

This is an implementation type of this component and must not be used by clients of the balm package.

Member Function Documentation

◆ getCollector() [1/2]

static void balm::Metric_MacroImp::getCollector ( Collector **  collector,
CategoryHolder holder,
const char *  category,
const char *  metric 
)
static

Load the specified collector with the address of the default collector (from the default metrics manager) for the specified metric identified by the specified category and name, and register the specified holder for category. Note that *collector must be assigned before registering holder to ensure that the macros always have a valid collector when holder->enabled() is true.

◆ getCollector() [2/2]

static void balm::Metric_MacroImp::getCollector ( Collector **  collector,
CategoryHolder holder,
const char *  category,
const char *  metric,
PublicationType::Value  preferredPublicationType 
)
static

Load the specified collector with the address of the default collector (from the default metrics manager) for the specified metric identified by the specified category and name, register the specified holder for category, and set the identified metric's preferred publication type to the specified preferredPublicationType. Note that *collector must be assigned before holder to ensure that the macros always have a valid collector when holder->enabled() is true.


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