MIRA
|
Different functions for searching files or directories. More...
#include <utils/Path.h>
Go to the source code of this file.
Namespaces | |
mira | |
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec> | |
Functions | |
MIRA_BASE_EXPORT void | checkForMIRAPath () |
Checks if environment variable(s) for MIRA is/are defined. More... | |
MIRA_BASE_EXPORT PathVector | getMIRAPaths () |
Returns vector of all MIRA project paths. More... | |
MIRA_BASE_EXPORT Path | findFile (const PathVector &paths, const Path &file) |
Find a file in a vector of paths. More... | |
MIRA_BASE_EXPORT Path | findProjectFile (const Path &file) |
Same as findFile above, but using all of the paths contained in $MIRA_PATH variable. More... | |
MIRA_BASE_EXPORT PathVector | findFiles (const PathVector &paths, const Path &file, bool recursive=false) |
Finds all files in a vector of paths. More... | |
MIRA_BASE_EXPORT PathVector | findFiles (const Path &path, const Path &file, bool recursive=false) |
Same as findFiles above, but using only one search path. More... | |
MIRA_BASE_EXPORT PathVector | findProjectFiles (const Path &file, bool recursive=false) |
Same as findFiles above, but using all of the paths contained in $MIRA_PATH variable. More... | |
MIRA_BASE_EXPORT Path | findDirectory (const PathVector &paths, const Path &path) |
Find a sub directory in a vector of paths. More... | |
MIRA_BASE_EXPORT Path | findProjectDirectory (const Path &path) |
Same as findDirectory above, but using all of the paths contained in $MIRA_PATH variable. More... | |
MIRA_BASE_EXPORT Path | findContainingMIRAPath (const Path &path) |
Returns the MIRA path that contains the given path. More... | |
MIRA_BASE_EXPORT Path | chopMIRAPath (const Path &path) |
Removes the root part of the given path that belongs to one of MIRA paths. More... | |
MIRA_BASE_EXPORT PathVector | findDirectories (const PathVector &paths, const Path &path, bool recursive=false) |
Finds all sub directories in a vector of paths. More... | |
MIRA_BASE_EXPORT PathVector | findDirectories (const Path &basePath, const Path &path, bool recursive=false) |
Same as findDirectories above, but searching only in one path. More... | |
MIRA_BASE_EXPORT PathVector | findProjectDirectories (const Path &path, bool recursive=false) |
Same as findDirectories above, but using all of the paths contained in $MIRA_PATH variable. More... | |
MIRA_BASE_EXPORT std::string | findProjectPath (const std::string &path) |
Finds a file or directory searching in all paths contained in $MIRA_PATH. More... | |
Different functions for searching files or directories.