[#BloombergLP-balm-MetricsManager-addSpecificPublisher-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]::addSpecificPublisher
:relfileprefix: ../../../
:mrdocs:

`addSpecificPublisher` overloads

== Synopses

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

Add a publisher used only for the specified `category`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balm/MetricsManager/addSpecificPublisher-0f.adoc[addSpecificPublisher](
    xref:BloombergLP/balm/Category.adoc[Category] const* category,
    xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;Publisher&gt;] const& publisher);
----

[.small]#xref:BloombergLP/balm/MetricsManager/addSpecificPublisher-0f.adoc[_» more&period;&period;&period;_]#

Add the specified `publisher` for the named category&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balm/MetricsManager/addSpecificPublisher-0e.adoc[addSpecificPublisher](
    char const* categoryName,
    xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;Publisher&gt;] const& publisher);
----

[.small]#xref:BloombergLP/balm/MetricsManager/addSpecificPublisher-0e.adoc[_» more&period;&period;&period;_]#

== Return Value

* 0 on success, and a non&hyphen;zero value with no effect if `publisher` has already been registered for `category`
* 0 on success, and a non&hyphen;zero value with no effect if `publisher` has already been registered for the named category

== Parameters

[cols="1,4"]
|===
| Name| Description
| *category*
| category for which to register the publisher
| *publisher*
| publisher to register for `category`
| *categoryName*
| null&hyphen;terminated category name
|===


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