22 #ifndef REPORTHANDLER_HPP
23 #define REPORTHANDLER_HPP
25 #include <LbmLib/include/reportHandler/AbstractReportFunctor.hpp>
30 namespace reportHandler {
41 1) : reportStep_(reportStep) {}
65 std::vector<std::unique_ptr<AbstractReportFunctor> > reporters_;
69 const unsigned int reportStep_;
74 #endif // REPORTHANDLER_HPP
void registerReporter(std::unique_ptr< AbstractReportFunctor > reporter)
registerReporter Register a report Functor. This method takes ownership of the unique_ptr passed ...
ReportHandler(unsigned int reportStep=1)
ReportHandler The constructor for the report Handler.
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
the report handler which stores the reporters