[#BloombergLP-balm-Metric_MacroImp-getCollector-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Metric_MacroImp.adoc[Metric_MacroImp]::getCollector :relfileprefix: ../../../ :mrdocs: `getCollector` overloads == Synopses Declared in `<balm_metric.h>` Load the default collector for a metric and register a category holder. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/balm/Metric_MacroImp/getCollector-07.adoc[getCollector]( xref:BloombergLP/balm/Collector.adoc[Collector]** collector, xref:BloombergLP/balm/CategoryHolder.adoc[CategoryHolder]* holder, char const* category, char const* metric); ---- [.small]#xref:BloombergLP/balm/Metric_MacroImp/getCollector-07.adoc[_» more..._]# Load the default collector for a metric, register a holder, and set publication type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/balm/Metric_MacroImp/getCollector-00.adoc[getCollector]( xref:BloombergLP/balm/Collector.adoc[Collector]** collector, xref:BloombergLP/balm/CategoryHolder.adoc[CategoryHolder]* holder, char const* category, char const* metric, xref:BloombergLP/balm/PublicationType/Value.adoc[PublicationType::Value] preferredPublicationType); ---- [.small]#xref:BloombergLP/balm/Metric_MacroImp/getCollector-00.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *collector* | receives the address of the default collector | *holder* | category holder to register for `category` | *category* | null‐terminated category name | *metric* | null‐terminated metric name | *preferredPublicationType* | preferred publication type for the metric |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#