Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::OutputRegistry Class Reference

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.
 

Detailed Description

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"}}
* 

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