22 #include <LbmLib/include/reportHandler/ReportHandler.hpp>
23 #include <LbmLib/include/reportHandler/AbstractReportFunctor.hpp>
26 namespace reportHandler {
32 std::unique_ptr<AbstractReportFunctor> reporter) {
33 reporters_.push_back(std::move(reporter));
41 if (time % reportStep_ == 0) {
42 for (
const auto& i : this->reporters_) {
50 for (
const auto& i : this->reporters_) {
void registerReporter(std::unique_ptr< AbstractReportFunctor > reporter)
registerReporter Register a report Functor. This method takes ownership of the unique_ptr passed ...
void writeCrashReport(unsigned int time) const
writeCrashReport Dumps the reporters when crashed.
void writeReport(unsigned int time) const
writeReport Writes the report if the time step fits to the reportStep