Quick Links: |
#include <balm_streampublisher.h>
Public Member Functions | |
StreamPublisher (bsl::ostream &stream) | |
virtual | ~StreamPublisher () |
virtual void | publish (const MetricSample &metricValues) |
This class provides an implementation of the Publisher
protocol. This stream publisher publishes recorded metric values to an output stream specified at construction.
See Component balm_streampublisher
balm::StreamPublisher::StreamPublisher | ( | bsl::ostream & | stream | ) |
Create a streampublisher and initialize it to publish metrics to the specified stream
.
virtual balm::StreamPublisher::~StreamPublisher | ( | ) | [virtual] |
Destroy this stream publisher.
virtual void balm::StreamPublisher::publish | ( | const MetricSample & | metricValues | ) | [virtual] |
Publish the specified metricValues
to the output stream specified at construction.
Implements balm::Publisher.