[#BloombergLP-balm-IntegerMetric_MacroImp-getCollector-0df1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/IntegerMetric_MacroImp.adoc[IntegerMetric&lowbar;MacroImp]::getCollector
:relfileprefix: ../../../
:mrdocs:

`getCollector` overloads

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/balm/IntegerMetric_MacroImp/getCollector-03.adoc[getCollector](
    xref:BloombergLP/balm/IntegerCollector.adoc[IntegerCollector]** collector,
    xref:BloombergLP/balm/CategoryHolder.adoc[CategoryHolder]* holder,
    char const* category,
    char const* metric);
----

[.small]#xref:BloombergLP/balm/IntegerMetric_MacroImp/getCollector-03.adoc[_» more&period;&period;&period;_]#

Load a default integer collector, register its category holder, and set preferred publication type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/balm/IntegerMetric_MacroImp/getCollector-0df7.adoc[getCollector](
    xref:BloombergLP/balm/IntegerCollector.adoc[IntegerCollector]** 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/IntegerMetric_MacroImp/getCollector-0df7.adoc[_» more&period;&period;&period;_]#

== Parameters

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


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