Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
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?

Member Function Documentation

◆ category()

virtual Category celeritas::OutputInterface::category ( ) const
pure virtual

◆ label()

virtual std::string_view celeritas::OutputInterface::label ( ) const
pure virtual

◆ output()

virtual void celeritas::OutputInterface::output ( JsonPimpl ) const
pure virtual

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