summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Glob.hxx.in
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-21 21:02:47 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-21 21:02:47 (GMT)
commit9dbf4438dcf2d08477b140edc0a15927377699d3 (patch)
tree94f640354e9f37eb1b1d2d7e07e65e9ae0e6202d /Source/kwsys/Glob.hxx.in
parent1cdd8b4fbd39abfa162b36d6f49643a4dceef1fd (diff)
downloadCMake-9dbf4438dcf2d08477b140edc0a15927377699d3.zip
CMake-9dbf4438dcf2d08477b140edc0a15927377699d3.tar.gz
CMake-9dbf4438dcf2d08477b140edc0a15927377699d3.tar.bz2
ENH: Add support for relative paths and cleanup
Diffstat (limited to 'Source/kwsys/Glob.hxx.in')
-rw-r--r--Source/kwsys/Glob.hxx.in18
1 files changed, 13 insertions, 5 deletions
diff --git a/Source/kwsys/Glob.hxx.in b/Source/kwsys/Glob.hxx.in
index 67d4bde..728276f 100644
--- a/Source/kwsys/Glob.hxx.in
+++ b/Source/kwsys/Glob.hxx.in
@@ -54,12 +54,16 @@ public:
//! Set recurse to true to match subdirectories.
void RecurseOn() { this->SetRecurse(true); }
void RecurseOff() { this->SetRecurse(false); }
- void SetRecurse(bool i) { m_Recurse = i; }
- bool GetRecurse() { return m_Recurse; }
+ void SetRecurse(bool i) { this->Recurse = i; }
+ bool GetRecurse() { return this->Recurse; }
+
+ //! Set relative to true to only show relative path to files.
+ void SetRelative(const char* dir);
+ const char* GetRelative();
protected:
//! Process directory
- void ProcessDirectory(kwsys_stl::string::size_type start,
+ void ProcessDirectory(kwsys_stl::string::size_type start,
const kwsys_stl::string& dir, bool dir_only);
//! Process last directory, but only when recurse flags is on. That is
@@ -78,8 +82,12 @@ protected:
//! Add regular expression
void AddExpression(const char* expr);
- GlobInternals* m_Internals;
- bool m_Recurse;
+ //! Add a file to the list
+ void AddFile(kwsys_stl::vector<kwsys_stl::string>& files, const char* file);
+
+ GlobInternals* Internals;
+ bool Recurse;
+ kwsys_stl::string Relative;
};
} // namespace @KWSYS_NAMESPACE@