44 void walk(
const std::string & fullpath,
const std::string & nodename, hit::Node * n)
override;
106 void walk(
const std::string & fullpath,
const std::string & nodepath, hit::Node * n);
122 template <
typename T,
typename Base>
125 const std::string & short_name,
126 InputParameters::Parameter<T> * param,
130 template <
typename T,
typename UP_T,
typename Base>
132 const std::string & short_name,
133 InputParameters::Parameter<T> * param,
138 template <
typename T,
typename Base>
140 const std::string & short_name,
141 InputParameters::Parameter<std::vector<T>> * param,
146 template <
typename KeyType,
typename MappedType>
148 const std::string & short_name,
149 InputParameters::Parameter<std::map<KeyType, MappedType>> * param,
157 template <
typename T>
159 const std::string & short_name,
160 InputParameters::Parameter<std::vector<std::vector<T>>> * param,
168 template <
typename T>
170 const std::string & full_name,
171 const std::string & short_name,
172 InputParameters::Parameter<std::vector<std::vector<std::vector<T>>>> * param,
180 template <
typename T>
182 const std::string & short_name,
183 InputParameters::Parameter<T> * param,
191 template <
typename T>
193 const std::string & short_name,
194 InputParameters::Parameter<std::vector<T>> * param,
209 template <
typename T>
212 const std::string & short_name,
213 InputParameters::Parameter<std::vector<std::vector<T>>> * param,
257 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
std::unordered_set< std::string > _deprec_param_tracker
Tracks whether a deprecated param has had its warning message printed already.
void walkRaw(std::string fullpath, std::string nodepath, hit::Node *n)
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 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
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.
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...
std::vector< std::string > errors
void setScalarValueTypeParameter(const std::string &full_name, const std::string &short_name, InputParameters::Parameter< T > *param, bool in_global, GlobalParamsAction *global_block)
const std::shared_ptr< Parser > _parser
The front 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.
hit::Node * _root
The root node from the Parser; in the future, we should probably clone this so that we don't muck wit...
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::unique_ptr< hit::Node > _cli_root
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...
bool _sections_read
Boolean to indicate whether parsing has started (sections have been extracted)
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...
std::ostringstream * _current_error_stream
The current stream object used for capturing errors during extraction.
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...
Builder(MooseApp &app, ActionWarehouse &action_wh, std::shared_ptr< Parser > parser)
ActionWarehouse & _action_wh
Action warehouse that will be filled by actions.
Parses MOOSE input using HIT/WASP.
void walk(const std::string &fullpath, const std::string &nodepath, hit::Node *n)