20 void setStatisticsSource(std::unique_ptr<ArchiveSource> source) {
21 source_ = std::move(source);
24 void addStatisticsSink(std::unique_ptr<ArchiveSink> sink) {
25 sinks_.emplace_back(sink.release());
28 const std::vector<std::unique_ptr<ArchiveSink>> & getSinks()
const {
35 const std::vector<double> & values = source_->readFromSource();
36 for (
auto & sink : sinks_) {
37 sink->sendToSink(values);
46 for (
auto & sink : sinks_) {
52 static const std::string & getSimulationTimeStamp_() {
53 return simulation_time_stamp_;
57 std::unique_ptr<ArchiveSource> source_;
58 std::vector<std::unique_ptr<ArchiveSink>> sinks_;
59 static std::string simulation_time_stamp_;