Structure representing a File (FileEntry) or Directory (DirEntry) entry. This is included as the first element of FileEntry and DirEntry structures. It allows those structures to be cast as a FileDirEntry*. More...
#include <Composite_FileDirEntry.h>
Public Attributes | |
FileDirTypes | fileDirType |
Value from the FileDirTypes enumeration indicating what type of entry this is a part of. Call the FileDirEntry_GetFileDirType() function to get this value. | |
const char * | name |
Name of this entry. Use the FileDirEntry_GetName() function to get this value. | |
long | length |
Length of this entry. For DirEntry objects, this is computed when getting the length by calling the FileDirEntry_GetLength() function. | |
time_t | whenModified |
Timestamp of when this entry was last "modified". Use the FileDirEntry_GetWhenModified() function to get this value. | |
struct FileDirEntry * | next |
Points to the next entry in a linked list of FileDirEntry objects. NULL means no more in list. | |
Structure representing a File (FileEntry) or Directory (DirEntry) entry. This is included as the first element of FileEntry and DirEntry structures. It allows those structures to be cast as a FileDirEntry*.
Definition at line 43 of file c/Composite_FileDirEntry.h.
FileDirTypes fileDirType |
Value from the FileDirTypes enumeration indicating what type of entry this is a part of. Call the FileDirEntry_GetFileDirType() function to get this value.
Definition at line 50 of file c/Composite_FileDirEntry.h.
Referenced by _DestroyTree(), _NewDirEntry(), _NewFileEntry(), FileDirEntry_GetChildren(), FileDirEntry_GetFileDirType(), and FileDirEntry_GetLength().
long length |
Length of this entry. For DirEntry objects, this is computed when getting the length by calling the FileDirEntry_GetLength() function.
Definition at line 62 of file c/Composite_FileDirEntry.h.
Referenced by _NewFileEntry(), and FileDirEntry_GetLength().
const char* name |
Name of this entry. Use the FileDirEntry_GetName() function to get this value.
Definition at line 56 of file c/Composite_FileDirEntry.h.
Referenced by _NewDirEntry(), _NewFileEntry(), and FileDirEntry_GetName().
struct FileDirEntry* next |
Points to the next entry in a linked list of FileDirEntry objects. NULL means no more in list.
Definition at line 74 of file c/Composite_FileDirEntry.h.
Referenced by _AddChild(), _FindEntry(), Composite_Exercise_FormatEntry(), and FileDirEntry_GetLength().
time_t whenModified |
Timestamp of when this entry was last "modified". Use the FileDirEntry_GetWhenModified() function to get this value.
Definition at line 68 of file c/Composite_FileDirEntry.h.
Referenced by _NewDirEntry(), _NewFileEntry(), and FileDirEntry_GetWhenModified().