[#BloombergLP-balm-Metric_MacroImp-getCollector-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Metric_MacroImp.adoc[Metric&lowbar;MacroImp]::getCollector
:relfileprefix: ../../../
:mrdocs:

`getCollector` overloads

== Synopses

Declared in `&lt;balm&lowbar;metric&period;h&gt;`

Load the default collector for a metric and register a category holder&period;


[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&period;&period;&period;_]#

Load the default collector for a metric, register a holder, and set publication type&period;


[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&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *collector*
| receives the address of the default collector
| *holder*
| category holder to register for `category`
| *category*
| null&hyphen;terminated category name
| *metric*
| null&hyphen;terminated metric name
| *preferredPublicationType*
| preferred publication type for the metric
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
