22 params.
addRequiredParam<FileName>(
"filename",
"The path to the file including its name");
25 params.
addClassDescription(
"Loads a JSON file and makes it content available to consumers");
40 std::ifstream jsondata(filename);
A MultiMooseEnum object to hold "execute_on" flags.
JSONFileReader(const InputParameters ¶meters)
static InputParameters validParams()
nlohmann::json _root
JSON data.
User object that reads a JSON file and makes its data available to other objects. ...
void read(const FileName &filename)
Read the JSON file and load it into _root.
bool checkFileReadable(const std::string &filename, bool check_line_endings=false, bool throw_on_unreadable=true, bool check_for_git_lfs_pointer=true)
Checks to see if a file is readable (exists and permissions)
const FileName & _filename
Database filename.
registerMooseObject("MooseApp", JSONFileReader)
static InputParameters validParams()
const ExecFlagType EXEC_INITIAL