Functions | |
| TIGL_EXPORT void | CheckFileIsReadable (const std::string &filePath) |
| Checks whether a file path points to a readable file. | |
| TIGL_EXPORT std::string | ResolveFilePath (const std::string &baseFilePath, const std::string &filePath) |
| Resolves a file path relative to a base file. | |
| TIGL_EXPORT void CheckFileIsReadable | ( | const std::string & | filePath | ) |
Checks whether a file path points to a readable file.
This function does not resolve or modify the path. It returns normally if filePath is readable as given.
| filePath | File path to check. |
| tigl::CTiglError | with TIGL_OPEN_FAILED if the file is not readable. |
| TIGL_EXPORT std::string ResolveFilePath | ( | const std::string & | baseFilePath, |
| const std::string & | filePath ) |
Resolves a file path relative to a base file.
Relative paths are interpreted relative to the directory of baseFilePath. Absolute paths are returned unchanged.
| baseFilePath | Path to the file whose directory is used as base. |
| filePath | Absolute or relative file path to resolve. |