#include <Directory.h>
It can be used to get all information at once, without having to handle the recursive calls. The files and directories are stored in a flat structure.
Definition at line 66 of file Directory.h.
Public Member Functions | |
| void | AppendEntry (DirectoryEntry *Entry) |
| Appends an entry to the directory object. | |
| void | DeleteAll () |
| Removes and frees all entries in the directory object. | |
| bool | DeleteEntry (DirectoryEntry *Entry) |
| Removes and frees a directory entry. | |
| bool | DeleteEntry (long nr) |
| Removes and frees a directory entry. | |
| bool | DeleteFirstEntry () |
| Removes and frees the first directory entry. | |
| bool | DeleteLastEntry () |
| Removes and frees the last directory entry. | |
| Directory () | |
| Creates a new directory. | |
| DirectoryEntry * | GetEntry (long nr) |
| Returns the directory entry at a given position. | |
| int | GetEntryCount () |
| Returns the number of directory entries. | |
| DirectoryEntry * | GetFirstEntry () |
| Returns the first directory entry. | |
| DirectoryEntry * | GetLastEntry () |
| Returns the last directory entry. | |
| void | InsertEntry (DirectoryEntry *Entry, long nr) |
| Inserts an directory entry before a given position. | |
| bool | IsEmpty () |
| Returns, if there are no entries in the directory. | |
| void | PrependEntry (DirectoryEntry *Entry) |
| Prepends an entry to the directory object. | |
| void | ReadFrom (Path *Root, const char *filter, int requiredAttributes, int forbiddenAttributes, bool recurse) |
| Adds all files and/or directories from a given root to the directory object. | |
| void | ReadFrom (Path *RootWithFilter, int requiredAttributes, int forbiddenAttributes, bool recurse) |
| Adds all files and/or directories from a given root to the directory object. | |
| void | ReadFrom (const char *root, const char *filter, int requiredAttributes, int forbiddenAttributes, bool recurse) |
| Adds all files and/or directories from a given root to the directory object. | |
| void | ReadFrom (const char *rootWithFilter, int requiredAttributes, int forbiddenAttributes, bool recurse) |
| Adds all files and/or directories from a given root to the directory object. | |
| DirectoryEntry * | UnlinkEntry (DirectoryEntry *Entry) |
| Removes a given directory entry from the array. | |
| DirectoryEntry * | UnlinkEntry (long nr) |
| Removes a directory entry at a given position. | |
| DirectoryEntry * | UnlinkFirstEntry () |
| Removes the first directory entry from the array. | |
| DirectoryEntry * | UnlinkLastEntry () |
| Removes the last directory entry from the array. | |
| ~Directory () | |
| Destroys the directory. | |
Private Member Functions | |
| void | ReadFromInternal (Path *RootWithFilter, int requiredAttributes, int forbiddenAttributes, bool recurse) |
| The main directory read recursion. | |
Private Attributes | |
| ContainingList< DirectoryEntry > * | Entries |
| The entries of the read directory. | |
|
|
Creates a new directory.
|
|
|
Destroys the directory.
|
|
|
Appends an entry to the directory object.
|
|
|
Removes and frees all entries in the directory object.
|
|
|
Removes and frees a directory entry.
|
|
|
Removes and frees a directory entry.
|
|
|
Removes and frees the first directory entry.
|
|
|
Removes and frees the last directory entry.
|
|
|
Returns the directory entry at a given position.
|
|
|
Returns the number of directory entries.
|
|
|
Returns the first directory entry.
|
|
|
Returns the last directory entry.
|
|
||||||||||||
|
Inserts an directory entry before a given position. All elements at and after the position are moved by one.
|
|
|
Returns, if there are no entries in the directory.
|
|
|
Prepends an entry to the directory object.
|
|
||||||||||||||||||||||||
|
Adds all files and/or directories from a given root to the directory object.
|
|
||||||||||||||||||||
|
Adds all files and/or directories from a given root to the directory object.
|
|
||||||||||||||||||||||||
|
Adds all files and/or directories from a given root to the directory object.
|
|
||||||||||||||||||||
|
Adds all files and/or directories from a given root to the directory object.
|
|
||||||||||||||||||||
|
The main directory read recursion. Gets all matching files and/or directories and recurses, if desired, and fills the directory object with the entries.
|
|
|
Removes a given directory entry from the array. The entry is not freed, but returned.
|
|
|
Removes a directory entry at a given position. The entry is not freed, but returned.
|
|
|
Removes the first directory entry from the array. The entry is not freed, but returned.
|
|
|
Removes the last directory entry from the array. The entry is not freed, but returned.
|
|
|
The entries of the read directory.
Definition at line 73 of file Directory.h. |
1.3.6