|
NEML2 2.0.0
|
A parser is responsible for parsing an input file into a collection of options which can be used by the Factory to manufacture corresponding objects. More...
A parser is responsible for parsing an input file into a collection of options which can be used by the Factory to manufacture corresponding objects.
The HITParser parses input files written in the HIT format.
#include <HITParser.h>

Public Member Functions | |
| HITParser ()=default | |
| HITParser (const HITParser &)=default | |
| HITParser (HITParser &&) noexcept=default | |
| HITParser & | operator= (const HITParser &)=default |
| HITParser & | operator= (HITParser &&) noexcept=default |
| ~HITParser () override=default | |
| InputFile | parse (const std::filesystem::path &filename, const std::string &additional_input="") const override |
| Parse a HIT input file from a filename. | |
| InputFile | parse (hit::Node *root) const |
| Parse a HIT input file from a root node. | |
Public Member Functions inherited from Parser | |
| Parser ()=default | |
| Parser (const Parser &)=default | |
| Parser (Parser &&) noexcept=default | |
| Parser & | operator= (const Parser &)=default |
| Parser & | operator= (Parser &&) noexcept=default |
| virtual | ~Parser ()=default |
Additional Inherited Members | |
Static Public Attributes inherited from Parser | |
| static const std::vector< std::string > | sections |
| Known top-level sections in the input file. | |
|
default |
|
overridedefault |
|
overridevirtual |
Parse a HIT input file from a filename.
Implements Parser.
| InputFile parse | ( | hit::Node * | root | ) | const |
Parse a HIT input file from a root node.