|
|
@@ -23,30 +23,30 @@ class DirectoryInternals;
|
|
|
|
|
|
/** \class Directory
|
|
|
* \brief Portable directory/filename traversal.
|
|
|
- *
|
|
|
+ *
|
|
|
* Directory provides a portable way of finding the names of the files
|
|
|
* in a system directory.
|
|
|
*
|
|
|
* Directory currently works with Windows and Unix operating systems.
|
|
|
*/
|
|
|
-class @KWSYS_NAMESPACE@_EXPORT Directory
|
|
|
+class @KWSYS_NAMESPACE@_EXPORT 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.
|
|
|
+ * in that directory. 0 is returned if the directory can not be
|
|
|
+ * opened, 1 if it is opened.
|
|
|
*/
|
|
|
bool Load(const char*);
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Return the number of files in the current directory.
|
|
|
*/
|
|
|
unsigned long GetNumberOfFiles() const;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Return the file at the given index, the indexing is 0 based
|
|
|
*/
|
|
|
@@ -57,10 +57,9 @@ public:
|
|
|
*/
|
|
|
const char* GetPath() const;
|
|
|
|
|
|
-protected:
|
|
|
/**
|
|
|
- * Clear the internal structure. Used internally at beginning of Load(...) to clear
|
|
|
- * the cache.
|
|
|
+ * Clear the internal structure. Used internally at beginning of Load(...)
|
|
|
+ * to clear the cache.
|
|
|
*/
|
|
|
void Clear();
|
|
|
|