Interface for objects that need to resolve data file paths (MooseObject and Action) More...
#include <DataFileInterface.h>
Public Types | |
using | DataFileParameterType = DataFileName |
The parameter type this interface expects for a data file name. More... | |
Public Member Functions | |
DataFileInterface (const ParallelParamObject &parent) | |
Constructing the object. More... | |
std::string | getDataFileName (const std::string ¶m) const |
Deprecated method. More... | |
std::string | getDataFileNameByName (const std::string &relative_path) const |
Deprecated method. More... | |
std::string | getDataFilePath (const std::string &relative_path) const |
Returns the path of a data file for a given relative file path. More... | |
Private Attributes | |
const ParallelParamObject & | _parent |
Interface for objects that need to resolve data file paths (MooseObject and Action)
Definition at line 21 of file DataFileInterface.h.
using DataFileInterface::DataFileParameterType = DataFileName |
The parameter type this interface expects for a data file name.
Definition at line 27 of file DataFileInterface.h.
DataFileInterface::DataFileInterface | ( | const ParallelParamObject & | parent | ) |
Constructing the object.
parent | Parent object (either MooseObject or Action) for params and output |
Definition at line 18 of file DataFileInterface.C.
std::string DataFileInterface::getDataFileName | ( | const std::string & | param | ) | const |
Deprecated method.
The data file paths are now automatically set within the InputParameters object, so using getParam<DataFileName>("param_name") is now sufficient.
Definition at line 21 of file DataFileInterface.C.
std::string DataFileInterface::getDataFileNameByName | ( | const std::string & | relative_path | ) | const |
Deprecated method.
Use getDataFilePath() instead.
Definition at line 31 of file DataFileInterface.C.
std::string DataFileInterface::getDataFilePath | ( | const std::string & | relative_path | ) | const |
Returns the path of a data file for a given relative file path.
This can be used for hardcoded datafile names and will search the same locations as getDataFileName
Definition at line 40 of file DataFileInterface.C.
Referenced by getDataFileNameByName().
|
private |
Definition at line 58 of file DataFileInterface.h.
Referenced by getDataFileName(), getDataFileNameByName(), and getDataFilePath().