NEML2 1.4.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.
#include <Parser.h>
Public Member Functions | |
Parser ()=default | |
virtual OptionCollection | parse (const std::filesystem::path &filename, const std::string &additional_input="") const =0 |
Deserialize a file. | |
Static Public Attributes | |
static const std::vector< std::string > | sections |
Known top-level sections in the input file. | |
|
default |
|
pure virtual |
Deserialize a file.
filename | Name/path of the input file. |
additional_input | Additional content of the input file not included in the input file itself, e.g., from command line. |
Implemented in HITParser.
|
static |
Known top-level sections in the input file.