summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Directory.cxx
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2006-03-06 15:12:02 (GMT)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2006-03-06 15:12:02 (GMT)
commit70e6fe3f9b4db9a18bf5cc063893a1b838be17be (patch)
tree1b0435c7fd1eea10904a7c6ffa73bca8a44ffabd /Source/kwsys/Directory.cxx
parent174cad0994f126c61eb129773742a9d189f22021 (diff)
downloadCMake-70e6fe3f9b4db9a18bf5cc063893a1b838be17be.zip
CMake-70e6fe3f9b4db9a18bf5cc063893a1b838be17be.tar.gz
CMake-70e6fe3f9b4db9a18bf5cc063893a1b838be17be.tar.bz2
ENH: Redo implementation of itkDirectory to use kwsys (avoid duplicating code).
Diffstat (limited to 'Source/kwsys/Directory.cxx')
-rw-r--r--Source/kwsys/Directory.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx
index fefdab8..727e61a 100644
--- a/Source/kwsys/Directory.cxx
+++ b/Source/kwsys/Directory.cxx
@@ -55,13 +55,13 @@ Directory::~Directory()
}
//----------------------------------------------------------------------------
-unsigned long Directory::GetNumberOfFiles()
+unsigned long Directory::GetNumberOfFiles() const
{
return static_cast<unsigned long>(this->Internal->Files.size());
}
//----------------------------------------------------------------------------
-const char* Directory::GetFile(unsigned long dindex)
+const char* Directory::GetFile(unsigned long dindex) const
{
if ( dindex >= this->Internal->Files.size() )
{
@@ -70,6 +70,12 @@ const char* Directory::GetFile(unsigned long dindex)
return this->Internal->Files[dindex].c_str();
}
+//----------------------------------------------------------------------------
+const char* Directory::GetPath() const
+{
+ return this->Internal->Path.c_str();
+}
+
} // namespace KWSYS_NAMESPACE
// First microsoft compilers