The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::statistics::ArchiveDispatcher Class Reference

This class holds exactly one generic ArchiveSource, and any number of generic ArchiveSink's. More...

#include <ArchiveDispatcher.hpp>

Public Member Functions

void setStatisticsSource (std::unique_ptr< ArchiveSource > source)
 
void addStatisticsSink (std::unique_ptr< ArchiveSink > sink)
 
const std::vector< std::unique_ptr< ArchiveSink > > & getSinks () const
 
void dispatch ()
 
void flush ()
 

Static Protected Member Functions

static const std::string & getSimulationTimeStamp_ ()
 

Detailed Description

This class holds exactly one generic ArchiveSource, and any number of generic ArchiveSink's.

Definition at line 15 of file ArchiveDispatcher.hpp.

Constructor & Destructor Documentation

◆ ~ArchiveDispatcher()

virtual sparta::statistics::ArchiveDispatcher::~ArchiveDispatcher ( )
inlinevirtual

Definition at line 18 of file ArchiveDispatcher.hpp.

Member Function Documentation

◆ addStatisticsSink()

void sparta::statistics::ArchiveDispatcher::addStatisticsSink ( std::unique_ptr< ArchiveSink sink)
inline

Definition at line 24 of file ArchiveDispatcher.hpp.

◆ dispatch()

void sparta::statistics::ArchiveDispatcher::dispatch ( )
inline

Definition at line 34 of file ArchiveDispatcher.hpp.

◆ flush()

void sparta::statistics::ArchiveDispatcher::flush ( )
inline

Definition at line 45 of file ArchiveDispatcher.hpp.

◆ getSimulationTimeStamp_()

static const std::string & sparta::statistics::ArchiveDispatcher::getSimulationTimeStamp_ ( )
inlinestaticprotected

Definition at line 52 of file ArchiveDispatcher.hpp.

◆ getSinks()

const std::vector< std::unique_ptr< ArchiveSink > > & sparta::statistics::ArchiveDispatcher::getSinks ( ) const
inline

Definition at line 28 of file ArchiveDispatcher.hpp.

◆ setStatisticsSource()

void sparta::statistics::ArchiveDispatcher::setStatisticsSource ( std::unique_ptr< ArchiveSource source)
inline

Definition at line 20 of file ArchiveDispatcher.hpp.


The documentation for this class was generated from the following file: