diff options
author | Brad King <brad.king@kitware.com> | 2022-01-22 10:58:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-22 10:58:45 (GMT) |
commit | ecd5a18928716ce9452e0e4d5ab62a4f3182b77c (patch) | |
tree | 42b2067149c9753fb24ab6b635d23b4ba3fa56fa /Source/kwsys/Directory.hxx.in | |
parent | 850bdc4203f4599fceaed2ae9ba21c53e71fd0fb (diff) | |
parent | ca03a9be6c629bec1ff989057bc3974d74b2904a (diff) | |
download | CMake-ecd5a18928716ce9452e0e4d5ab62a4f3182b77c.zip CMake-ecd5a18928716ce9452e0e4d5ab62a4f3182b77c.tar.gz CMake-ecd5a18928716ce9452e0e4d5ab62a4f3182b77c.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2022-01-22 (16e180ad)
Diffstat (limited to 'Source/kwsys/Directory.hxx.in')
-rw-r--r-- | Source/kwsys/Directory.hxx.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/kwsys/Directory.hxx.in b/Source/kwsys/Directory.hxx.in index d501116..9d0f462 100644 --- a/Source/kwsys/Directory.hxx.in +++ b/Source/kwsys/Directory.hxx.in @@ -6,6 +6,7 @@ #include <@KWSYS_NAMESPACE@/Configure.h> #include <@KWSYS_NAMESPACE@/Status.hxx> +#include <cstddef> #include <string> namespace @KWSYS_NAMESPACE@ { @@ -55,6 +56,26 @@ public: const char* GetFile(unsigned long) const; /** + * Return the name of the file at the given 0-based index. + */ + std::string const& GetFileName(std::size_t i) const; + + /** + * Return the absolute path to the file at the given 0-based index. + */ + std::string GetFilePath(std::size_t i) const; + + /** + * Return whether the file at the given 0-based index is a directory. + */ + bool FileIsDirectory(std::size_t i) const; + + /** + * Return whether the file at the given 0-based index is a symlink. + */ + bool FileIsSymlink(std::size_t i) const; + + /** * Return the path to Open'ed directory */ const char* GetPath() const; |