Celeritas  0.5.0-86+4a8eea4
Public Types | Public Member Functions | List of all members
celeritas::OutputInterface Class Referenceabstract

Pure abstract interface for writing metadata output to JSON. More...

#include <OutputInterface.hh>

Inheritance diagram for celeritas::OutputInterface:
Inheritance graph
[legend]

Public Types

enum class  Category {
  input , result , system , internal ,
  size_
}
 Output category (TODO: could replace with string/cstring?)
 

Public Member Functions

virtual Category category () const =0
 Category of data to write.
 
virtual std::string_view label () const =0
 Key for the entry inside the category.
 
virtual void output (JsonPimpl *) const =0
 

Detailed Description

Pure abstract interface for writing metadata output to JSON.

At the end of the program/run, the OutputRegistry will call the "output" method on all interfaces.

Todo:
Perhaps another output method for saving a schema?

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