summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-05 13:51:40 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-05 13:51:40 (GMT)
commitf895a94995b918779425b178ebbb865d689d06ed (patch)
tree576c892595970d2043918447876b399e92eff829 /Source/cmSystemTools.h
parent8ac50c4aad81f3b2e5ac026ce3ac5cf6f9aca307 (diff)
downloadCMake-f895a94995b918779425b178ebbb865d689d06ed.zip
CMake-f895a94995b918779425b178ebbb865d689d06ed.tar.gz
CMake-f895a94995b918779425b178ebbb865d689d06ed.tar.bz2
Add a simple globbing of files and directories
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index e68102a..67b9300 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -235,6 +235,18 @@ public:
static void Glob(const char *directory, const char *regexp,
std::vector<std::string>& files);
static void GlobDirs(const char *fullPath, std::vector<std::string>& files);
+
+ /**
+ * Try to find a list of files that match the "simple" globbing
+ * expression. At this point in time the globbing expressions have
+ * to be in form: /directory/partial_file_name*. The * character has
+ * to be at the end of the string and it does not support ?
+ * []... The optional argument type specifies what kind of files you
+ * want to find. 0 means all files, -1 means directories, 1 means
+ * files only. This method returns true if search was succesfull.
+ */
+ static bool SimpleGlob(const std::string& glob, std::vector<std::string>& files,
+ int type = 0);
static std::string GetCurrentWorkingDirectory();
static std::string GetProgramPath(const char*);