44 void walk(
const std::string & fullpath,
const std::string & nodename, hit::Node * n)
override;
46 std::vector<hit::ErrorMessage>
errors;
106 void walk(
const std::string & fullpath,
const std::string & nodepath, hit::Node * n);
117 template <
typename T,
typename Base>
120 const std::string & short_name,
121 InputParameters::Parameter<T> * param,
125 template <
typename T,
typename UP_T,
typename Base>
127 const std::string & short_name,
128 InputParameters::Parameter<T> * param,
131 const hit::Node & node);
134 template <
typename T,
typename Base>
136 const std::string & short_name,
137 InputParameters::Parameter<std::vector<T>> * param,
142 template <
typename KeyType,
typename MappedType>
144 const std::string & short_name,
145 InputParameters::Parameter<std::map<KeyType, MappedType>> * param,
153 template <
typename T>
155 const std::string & short_name,
156 InputParameters::Parameter<std::vector<std::vector<T>>> * param,
164 template <
typename T>
166 const std::string & full_name,
167 const std::string & short_name,
168 InputParameters::Parameter<std::vector<std::vector<std::vector<T>>>> * param,
176 template <
typename T>
178 const std::string & short_name,
179 InputParameters::Parameter<T> * param,
187 template <
typename T>
189 const std::string & short_name,
190 InputParameters::Parameter<std::vector<T>> * param,
205 template <
typename T>
208 const std::string & short_name,
209 InputParameters::Parameter<std::vector<std::vector<T>>> * param,
246 void walkRaw(std::string fullpath, std::string nodepath, hit::Node * n);
void build()
Parse an input file (or text string if provided) consisting of hit syntax and setup objects in the MO...
ActionFactory & _action_factory
The Factory that builds actions.
MooseApp & _app
The MooseApp this Parser is part of.
void walk(const std::string &fullpath, const std::string &nodename, hit::Node *n) override
void walkRaw(std::string fullpath, std::string nodepath, hit::Node *n)
Parser & _parser
The front parser.
void setTripleIndexParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< std::vector< std::vector< std::vector< T >>>> *param, bool in_global, GlobalParamsAction *global_block)
Template method for setting any triple indexed type parameter read from the input file or command lin...
void setScalarValueTypeParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< T > *param, bool in_global, GlobalParamsAction *global_block, const hit::Node &node)
void buildFullTree(const std::string &search_string)
Use MOOSE Factories to construct a full parse tree for documentation or echoing input.
Generic factory class for build all sorts of objects.
std::vector< std::string > _secs_need_first
The sections that we need to execute first (read during the final walk)
void setVectorVectorComponentParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< std::vector< std::vector< T >>> *param, bool in_global, GlobalParamsAction *global_block)
Template method for setting vector of several multivalue "scalar" type parameter read from the input ...
InputParameters * _current_params
The current parameter object for which parameters are being extracted.
Builder(MooseApp &app, ActionWarehouse &action_wh, Parser &parser)
void setScalarComponentParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< T > *param, bool in_global, GlobalParamsAction *global_block)
Template method for setting any multivalue "scalar" type parameter read from the input file or comman...
static InputParameters validParams()
Parameters that are processed directly by the Parser and are valid anywhere in the input...
Base class for MOOSE-based applications.
void setMapParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< std::map< KeyType, MappedType >> *param, bool in_global, GlobalParamsAction *global_block)
Template method for setting any map type parameter read from the input file or command line...
Storage for action instances.
std::unique_ptr< SyntaxTree > _syntax_formatter
Object for holding the syntax parse tree.
Holds the syntax in a Json::Value tree.
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...
hit::Node & _root
The root node from the Parser.
std::set< std::string > _extracted_vars
The set of all variables extracted from the input file.
UnusedWalker(std::set< std::string > used, Builder &p)
void initSyntaxFormatter(SyntaxFormatterType type, bool dump_mode)
Creates a syntax formatter for printing.
Specialized factory for generic Action System objects.
An inteface for the _console for outputting to the Console object.
void buildJsonSyntaxTree(JsonSyntaxTree &tree) const
Use MOOSE Factories to construct a parameter tree for documentation or echoing input.
void errorCheck(const libMesh::Parallel::Communicator &comm, bool warn_unused, bool err_unused)
std::string getPrimaryFileName(bool stripLeadingPath=true) const
Return the primary (first) filename that was parsed.
std::vector< hit::ErrorMessage > errors
void setScalarParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< T > *param, bool in_global, GlobalParamsAction *global_block)
Helper functions for setting parameters of arbitrary types - bodies are in the .C file since they are...
std::vector< hit::ErrorMessage > _errors
The errors accumulated during the walk.
void setDoubleIndexParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< std::vector< std::vector< T >>> *param, bool in_global, GlobalParamsAction *global_block)
Template method for setting any double indexed type parameter read from the input file or command lin...
Syntax & _syntax
Reference to an object that defines input file syntax.
std::set< std::string > _used
void setVectorParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< std::vector< T >> *param, bool in_global, GlobalParamsAction *global_block)
Template method for setting any vector type parameter read from the input file or command line...
Holding syntax for parsing input files.
void setVectorComponentParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< std::vector< T >> *param, bool in_global, GlobalParamsAction *global_block)
Template method for setting several multivalue "scalar" type parameter read from the input file or co...
Factory & _factory
The Factory associated with that MooseApp.
std::vector< std::string > listValidParams(std::string §ion_name)
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
std::unordered_map< std::string, std::string > _deprecated_params
Deprecation warnings.
ActionWarehouse & _action_wh
Action warehouse that will be filled by actions.
Parses MOOSE input using HIT/WASP.
Class for parsing input files.
void walk(const std::string &fullpath, const std::string &nodepath, hit::Node *n)