Class ScalarStatPublisher

Inheritance Relationships

Base Type

Class Documentation

class ScalarStatPublisher : public ska::pst::stat::StatPublisher

Concrete statistics publisher that only publishes scalar statistics, buffering the result locally.

Public Functions

ScalarStatPublisher(const ska::pst::common::AsciiHeader &config)

Create instance of a ScalarStatPublisher object.

Parameters

config – the configuration current voltage data stream.

virtual ~ScalarStatPublisher()

Destroy the ScalarStatPublisher object.

virtual void publish(std::shared_ptr<StatStorage> storage) override

publish the computed statistics as a scalar_stats attribute.

Parameters

storage – reference to the computed statistics to publish.

void reset()

reset the computed statistics scalar_stats attribute.

StatStorage::scalar_stats_t get_scalar_stats()

Return the scalar statistics of the ScalarStatPublisher.