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

Controller used when SPARTA simulations are directly feeding data into a tempdir archive. More...

#include <ArchiveController.hpp>

Inheritance diagram for sparta::statistics::LiveSimulationArchiveController:
Collaboration diagram for sparta::statistics::LiveSimulationArchiveController:

Public Member Functions

 LiveSimulationArchiveController (ReportStatisticsArchive *live_archive)
 
bool synchronize () override
 
void saveTo (const std::string &dir) override
 

Detailed Description

Controller used when SPARTA simulations are directly feeding data into a tempdir archive.

Definition at line 44 of file ArchiveController.hpp.

Constructor & Destructor Documentation

◆ LiveSimulationArchiveController()

sparta::statistics::LiveSimulationArchiveController::LiveSimulationArchiveController ( ReportStatisticsArchive live_archive)
inlineexplicit

Definition at line 47 of file ArchiveController.hpp.

Member Function Documentation

◆ saveTo()

void sparta::statistics::LiveSimulationArchiveController::saveTo ( const std::string &  dir)
overridevirtual

Make a deep copy of the current archived data into a new directory.

Implements sparta::statistics::ArchiveController.

◆ synchronize()

bool sparta::statistics::LiveSimulationArchiveController::synchronize ( )
overridevirtual

Live simulations' data sources buffer data into an ofstream. Calling this method will flush those buffers to disk.

Implements sparta::statistics::ArchiveController.


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