|
GridFire v0.7.1_rc2
General Purpose Nuclear Network
|
A parser for MESA-format network files. More...
#include <network_file.h>
Public Member Functions | |
| MESANetworkFileParser (const std::string &filename) | |
| Constructs a MESANetworkFileParser. | |
| ParsedNetworkData | parse (const std::string &filename) const override |
| Parses a MESA-format network file. | |
Public Member Functions inherited from gridfire::io::NetworkFileParser | |
| virtual | ~NetworkFileParser ()=default |
| Virtual destructor for the base class. | |
Private Types | |
| using | Config = fourdst::config::Config |
| using | LogManager = fourdst::logging::LogManager |
Private Attributes | |
| Config & | m_config = Config::getInstance() |
| quill::Logger * | m_logger = LogManager::getInstance().getLogger("log") |
| std::string | m_filename |
A parser for MESA-format network files.
This class is designed to parse reaction network files that follow the format used by the MESA stellar evolution code.
|
private |
|
private |
|
explicit |
Constructs a MESANetworkFileParser.
| filename | The path to the MESA network file. This may be used to pre-configure the parser. |
|
overridevirtual |
Parses a MESA-format network file.
This method will read and interpret the structure of a MESA network file to extract the list of reactions.
| filename | The path to the MESA network file. |
ParsedNetworkData struct containing the list of reaction names.| std::runtime_error | If the file cannot be opened or if it contains formatting errors. |
Implements gridfire::io::NetworkFileParser.
|
private |
|
private |
|
private |