
Functions | |
| std::string | getResourceFile (const std::string &filename) |
| Get path to the resources file. | |
| std::string | getTmpDirectory () |
| Returns writable temporary directory. | |
| std::string | makeTmpFile (const std::string &tmpfile, const std::string &srcfile) |
| Creates a copy of source file (if source file is specified) in the temporary directory and returns a path to the tmp file. | |
| std::string | fixSlashes (const std::string &path) |
| On WINDOWS, replaces all forward slashes by back slashes to avoid mixed slashes in one path. | |
| std::string getResourceFile | ( | const std::string & | filename | ) |
Get path to the resources file.
When running 'make test' source file is taken from MED_SRC/resources folder. Otherwise, file is searched in ${MED_ROOT_DIR}/share/salome/resources/med folder.
| filename | name of the resource file (should not include a path) |
References test_NonCoincidentDEC.filename, and fixSlashes().
| std::string getTmpDirectory | ( | ) |
Returns writable temporary directory.
| std::string makeTmpFile | ( | const std::string & | tmpfile, |
| const std::string & | srcfile | ||
| ) |
Creates a copy of source file (if source file is specified) in the temporary directory and returns a path to the tmp file.
| tmpfile | name of the temporary file (without path) |
| srcfile | source file |
| std::string fixSlashes | ( | const std::string & | path | ) |
On WINDOWS, replaces all forward slashes by back slashes to avoid mixed slashes in one path.