Reaktoro  v2.13.0
A unified framework for modeling chemically reactive systems
DatabaseParser Class Reference

Used to handle the parsing of YAML or JSON files to construct a Database object. More...

#include <DatabaseParser.hpp>

Public Member Functions

 DatabaseParser ()
 Construct a default DatabaseParser object.
 
 DatabaseParser (const DatabaseParser &other)
 Construct a copy of a DatabaseParser object.
 
 DatabaseParser (const Data &node)
 Construct a DatabaseParser object with given Data object.
 
 DatabaseParser (const Data &node, const ElementList &elements)
 Construct a DatabaseParser object with given Data and Element objects. More...
 
 ~DatabaseParser ()
 Destroy this DatabaseParser object.
 
auto operator= (DatabaseParser other) -> DatabaseParser &
 Assign another DatabaseParser object to this.
 
auto elements () const -> const ElementList &
 Return the parsed Element objects in the database file.
 
auto species () const -> const SpeciesList &
 Return the parsed Species objects in the database file.
 
 operator Database () const
 Return the parsed Element objects in the database file.
 

Detailed Description

Used to handle the parsing of YAML or JSON files to construct a Database object.

Constructor & Destructor Documentation

◆ DatabaseParser()

DatabaseParser ( const Data node,
const ElementList elements 
)
explicit

Construct a DatabaseParser object with given Data and Element objects.

Use this if there are Element objects that should be reused to create the Species objects.


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