47 #ifndef _MIRA_PATHFINDER_H_ 48 #define _MIRA_PATHFINDER_H_ 117 bool recursive =
false);
124 bool recursive =
false);
207 bool recursive =
false);
214 bool recursive =
false);
222 bool recursive =
false);
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...
std::vector< Path > PathVector
Typedef for vector of Paths.
Definition: Path.h:75
PropertyHint file(const std::string &filters=std::string(), bool save=false)
Tells the property editor that the path is for a file, and that it should show a "File Open"/"File Sa...
Definition: Path.h:247
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
boost::filesystem::path Path
Typedef of a Path (shorter version for boost::filesystem::path)
Definition: Path.h:69
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.
MIRA_BASE_EXPORT PathVector findFiles(const PathVector &paths, const Path &file, bool recursive=false)
Finds all files in a vector of paths.
MIRA_BASE_EXPORT Path findContainingMIRAPath(const Path &path)
Returns the MIRA path that contains the given path.
MIRA_BASE_EXPORT PathVector findDirectories(const PathVector &paths, const Path &path, bool recursive=false)
Finds all sub directories in a vector of paths.
MIRA_BASE_EXPORT Path findProjectDirectory(const Path &path)
Same as findDirectory above, but using all of the paths contained in $MIRA_PATH variable.
MIRA_BASE_EXPORT Path findDirectory(const PathVector &paths, const Path &path)
Find a sub directory in a vector of paths.
MIRA_BASE_EXPORT PathVector getMIRAPaths()
Returns vector of all MIRA project paths.
Functions for modifying file system paths.
MIRA_BASE_EXPORT void checkForMIRAPath()
Checks if environment variable(s) for MIRA is/are defined.
MIRA_BASE_EXPORT Path findFile(const PathVector &paths, const Path &file)
Find a file in a vector of paths.
MIRA_BASE_EXPORT Path findProjectFile(const Path &file)
Same as findFile above, but using all of the paths contained in $MIRA_PATH variable.
MIRA_BASE_EXPORT Path chopMIRAPath(const Path &path)
Removes the root part of the given path that belongs to one of MIRA paths.
MIRA_BASE_EXPORT std::string findProjectPath(const std::string &path)
Finds a file or directory searching in all paths contained in $MIRA_PATH.