Celeritas
0.5.0-56+6b053cd
|
Store classes that can output data at the end of the run. More...
#include <OutputRegistry.hh>
Public Types | |
Type aliases | |
using | SPConstInterface = std::shared_ptr< OutputInterface const > |
Public Member Functions | |
void | insert (SPConstInterface) |
Add an interface for writing. | |
void | output (JsonPimpl *) const |
Output all classes to a JSON object. | |
void | output (std::ostream *os) const |
Output all classes to a JSON object that's written to the given stream. | |
bool | empty () const |
Whether no output has been registered. | |
Store classes that can output data at the end of the run.
Each output interface defines a category (e.g. input, result, system) and a name. The output manager then writes the JSON output from that entry into a nested database:
{"category": {"label": "data"}} *