28#include "neml2/base/OptionCollection.h"
48 const std::string & additional_input =
"",
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
A data structure that holds options of multiple objects.
Definition OptionCollection.h:38
A parser is responsible for parsing an input file into a collection of options which can be used by t...
Definition Parser.h:57
virtual OptionCollection parse(const std::filesystem::path &filename, const std::string &additional_input="") const =0
Deserialize a file.
Definition CrossRef.cxx:32
ParserType
Definition Parser.h:33
@ XML
Definition Parser.h:35
@ YAML
Definition Parser.h:36
@ HIT
Definition Parser.h:34
@ AUTO
Definition Parser.h:37
void load_model(const std::string &path, const std::string &additional_input, ParserType ptype)
A convenient function to parse all options from an input file.
Definition Parser.cxx:32