[#BloombergLP-balm-StreamPublisher]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::StreamPublisher
:relfileprefix: ../../
:mrdocs:

This class provides an implementation of the `Publisher` protocol&period; This stream publisher publishes recorded metric values to an output stream specified at construction&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class StreamPublisher
    : public xref:BloombergLP/balm/Publisher.adoc[Publisher]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/balm/Publisher.adoc[Publisher]`
| This protocol class provides a `publish` method to publish collected sample of recorded metric values&period; The precise meaning of publish is left to derived classes to specify&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/StreamPublisher/2constructor.adoc[`StreamPublisher`]         [.small]#[constructor]#
| Create a streampublisher and initialize it to publish metrics to the specified `stream`&period;
| xref:BloombergLP/balm/StreamPublisher/2destructor.adoc[`&#126;StreamPublisher`] [.small]#[destructor]# [.small]#[virtual]#
| Destroy this stream publisher&period;
| xref:BloombergLP/balm/StreamPublisher/publish-06.adoc[`publish`] 
| `publish` overloads
|===



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