Reaktoro  v2.9.4
A unified framework for modeling chemically reactive systems
Interpreter Class Reference

Used to interpret json files containing defined calculations. More...

#include <Interpreter.hpp>

Public Member Functions

 Interpreter ()
 Construct a default Interpreter instance.
 
 Interpreter (const Interpreter &other)
 Construct a copy of an Interpreter instance.
 
virtual ~Interpreter ()
 Destroy this Interpreter instance.
 
auto operator= (Interpreter other) -> Interpreter &
 Assing another Interpreter instance to this.
 
auto executeJsonObject (json input) -> void
 Execute an input script. More...
 
auto executeJsonString (std::string input) -> void
 Execute an input script. More...
 
auto executeJsonFile (std::string input) -> void
 Execute an input script. More...
 
auto system () -> const ChemicalSystem &
 Return the constructed chemical system.
 
auto states () -> const std::map< std::string, ChemicalState > &
 Return all saved chemical states during the execution.
 
auto state (std::string reference) -> const ChemicalState &
 Return the saved chemical state with given reference name.
 

Detailed Description

Used to interpret json files containing defined calculations.

Member Function Documentation

◆ executeJsonObject()

auto executeJsonObject ( json  input) -> void

Execute an input script.

Parameters
inputThe input json object.

◆ executeJsonString()

auto executeJsonString ( std::string  input) -> void

Execute an input script.

Parameters
inputThe json-formatted input string.

◆ executeJsonFile()

auto executeJsonFile ( std::string  input) -> void

Execute an input script.

Parameters
inputThe name of the json-formatted input file.

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