Classes | |
| struct | GetPathOptions |
| Options to be passed to getPath(). More... | |
| struct | Path |
| Representation of a data file path. More... | |
Enumerations | |
| enum | Context { Context::RELATIVE, Context::ABSOLUTE, Context::DATA, Context::RELATIVE_NOT_FOUND, Context::ABSOLUTE_NOT_FOUND, Context::INVALID } |
| Context for where a data file came from. More... | |
Functions | |
| Path | getPath (std::string path, const GetPathOptions &options={}) |
| Get the data path for a given path, searching the registered data. More... | |
| Path | getPathExplicit (const std::string &data_name, const std::string &path, const std::optional< std::string > &base=std::optional< std::string >()) |
| Get the data path for a given path, searching the registered data given an explicit data search path. More... | |
|
strong |
Context for where a data file came from.
Definition at line 21 of file DataFileUtils.h.
| Moose::DataFileUtils::Path Moose::DataFileUtils::getPath | ( | std::string | path, |
| const GetPathOptions & | options = {} |
||
| ) |
Get the data path for a given path, searching the registered data.
| path | The path; can be prefixed with <name>: to search only data from <name> |
| options | Search options; see docstring for GetPathOptions for more info |
Definition at line 22 of file DataFileUtils.C.
Referenced by InputParameters::finalize(), DataFileInterface::getDataFilePath(), and getPathExplicit().
| Moose::DataFileUtils::Path Moose::DataFileUtils::getPathExplicit | ( | const std::string & | data_name, |
| const std::string & | path, | ||
| const std::optional< std::string > & | base = std::optional<std::string>() |
||
| ) |
Get the data path for a given path, searching the registered data given an explicit data search path.
This exists primarily so that you don't need to call getPath("moose:file").
| data_name | - The registered data name |
| path | - The path |
| base | - The base by which to search for the file relative to (optional) |
Definition at line 188 of file DataFileUtils.C.
1.8.14