45 const std::optional<std::string> &
data_name = std::optional<std::string>())
65 std::optional<std::string>
base;
94 const std::string & path,
95 const std::optional<std::string> & base = std::optional<std::string>());
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...
Relative to the base (typically an input file)
bool search_all_data
Whether or not to search all registered data.
Context context
Context for the file (where it came from)
From installed/in-tree data.
bool graceful
Whether or not to error whenever a path is not found.
Relative to the base, but not found.
Path getPath(std::string path, const GetPathOptions &options={})
Get the data path for a given path, searching the registered data.
Context
Context for where a data file came from.
Options to be passed to getPath().
Representation of a data file path.
std::optional< std::string > base
The base path by which to search for relative paths.
std::optional< std::string > data_name
The name of the data registry the file came from (with context == DATA)
Path(const std::string &path, const Context context, const std::optional< std::string > &data_name=std::optional< std::string >())