summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Directory.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-05-08 18:46:23 (GMT)
committerBrad King <brad.king@kitware.com>2003-05-08 18:46:23 (GMT)
commit43419192cb13b767585968115530274ab22459cf (patch)
treeaf06a6c130e3a76c2e2de0ea03ece0dc45795d74 /Source/kwsys/Directory.hxx.in
parent332f4021911a7be31c89a697938ba469a624a9c3 (diff)
downloadCMake-43419192cb13b767585968115530274ab22459cf.zip
CMake-43419192cb13b767585968115530274ab22459cf.tar.gz
CMake-43419192cb13b767585968115530274ab22459cf.tar.bz2
ENH: Reduced header dependencies and cleaned up inclusion of standard headers.
Diffstat (limited to 'Source/kwsys/Directory.hxx.in')
-rw-r--r--Source/kwsys/Directory.hxx.in34
1 files changed, 15 insertions, 19 deletions
diff --git a/Source/kwsys/Directory.hxx.in b/Source/kwsys/Directory.hxx.in
index 799dde6..89cbf9d 100644
--- a/Source/kwsys/Directory.hxx.in
+++ b/Source/kwsys/Directory.hxx.in
@@ -17,18 +17,13 @@
#ifndef @KWSYS_NAMESPACE@_Directory_hxx
#define @KWSYS_NAMESPACE@_Directory_hxx
-#ifdef _MSC_VER
-#pragma warning ( disable : 4786 )
-#endif
-
-#include <@KWSYS_NAMESPACE@/StandardIncludes.hxx>
-
-#include <string>
-#include <vector>
+#include <@KWSYS_NAMESPACE@/Configure.hxx>
namespace @KWSYS_NAMESPACE@
{
+class DirectoryInternals;
+
/** \class Directory
* \brief Portable directory/filename traversal.
*
@@ -37,33 +32,34 @@ namespace @KWSYS_NAMESPACE@
*
* Directory currently works with Windows and Unix operating systems.
*/
-
class Directory
{
public:
+ Directory();
+ ~Directory();
+
/**
* Load the specified directory and load the names of the files
* in that directory. 0 is returned if the directory can not be
* opened, 1 if it is opened.
*/
- bool Load(const char* dir);
-
+ bool Load(const char*);
+
/**
* Return the number of files in the current directory.
*/
- size_t GetNumberOfFiles() { return m_Files.size();}
-
+ unsigned long GetNumberOfFiles();
+
/**
* Return the file at the given index, the indexing is 0 based
*/
- const char* GetFile(size_t );
-
+ const char* GetFile(unsigned long);
+
private:
- kwsys_std::vector<kwsys_std::string> m_Files; // Array of Files
- kwsys_std::string m_Path; // Path to Open'ed directory
-
+ // Private implementation details.
+ DirectoryInternals* Internal;
}; // End Class: Directory
-
+
} // namespace @KWSYS_NAMESPACE@
#endif