38 eval(hit::Field * n,
const std::list<std::string> & args, hit::BraceExpander &
exp);
45 eval(hit::Field * n,
const std::list<std::string> & args, hit::BraceExpander &
exp);
52 walk(
const std::string & fullpath,
const std::string & , hit::Node * n)
override;
58 std::map<std::string, hit::Node *>
_have;
64 virtual void walk(
const std::string & ,
66 hit::Node * section)
override;
73 typedef std::map<std::string, hit::Node *>
ParamMap;
77 walk(
const std::string & fullpath,
const std::string & , hit::Node * n)
override;
88 void walk(
const std::string & fullpath,
const std::string & , hit::Node * n)
override;
108 Parser(
const std::vector<std::string> & input_filenames,
109 const std::optional<std::vector<std::string>> & input_text = {});
115 Parser(
const std::string & input_filename,
const std::optional<std::string> & input_text = {});
const std::vector< std::string > _input_filenames
The input file names.
void setAppType(const std::string &app_type)
void parse()
Parses the inputs.
const std::optional< std::vector< std::string > > _input_text
The optional input text contents (to support not reading by file)
std::vector< std::string > errors
CompileParamWalker(ParamMap &map)
Generic factory class for build all sorts of objects.
virtual std::string eval(hit::Field *n, const std::list< std::string > &args, hit::BraceExpander &exp)
const std::string & getLastInputFileName() const
Base class for MOOSE-based applications.
Storage for action instances.
const std::vector< std::string > & getInputFileNames() const
void extractParams(const std::string &prefix, InputParameters &p)
This function attempts to extract values from the input file based on the contents of the passed para...
std::vector< std::string > warnings
std::set< std::string > _duplicates
Holds the syntax in a Json::Value tree.
std::string _app_type
The application types extracted from [Application] block.
const std::string & getAppType() const
virtual void walk(const std::string &fullpath, const std::string &, hit::Node *n) override
Parser(const std::vector< std::string > &input_filenames, const std::optional< std::vector< std::string >> &input_text={})
Constructor given a list of input files, given in input_filenames.
std::map< std::string, hit::Node * > _have
Specialized factory for generic Action System objects.
std::map< std::string, hit::Node * > ParamMap
virtual void walk(const std::string &fullpath, const std::string &, hit::Node *n) override
std::unique_ptr< hit::Node > _root
The root node, which owns the whole tree.
void walk(const std::string &fullpath, const std::string &, hit::Node *n) override
std::filesystem::path getLastInputFilePath() const
virtual std::string eval(hit::Field *n, const std::list< std::string > &args, hit::BraceExpander &exp)
OverrideParamWalker(const CompileParamWalker::ParamMap &map)
Class for parsing input files.
std::vector< std::string > errors
virtual void walk(const std::string &, const std::string &, hit::Node *section) override
const CompileParamWalker::ParamMap & _map