Base class representing a File or Directory entry. More...
Public Member Functions | |
FileDirEntry () | |
Default constructor. | |
Properties | |
virtual FileDirTypes | FileDirType [get, protected set] |
The type of this entry as represented by a value from the FileDirTypes enumeration. | |
virtual string | Name [get, protected set] |
The name of this entry. | |
virtual long | Length [get, protected set] |
The length in bytes of this entry. Directory entries are the sum of the length of all children. | |
virtual DateTime | WhenModified [get, protected set] |
When this entry was last modified. | |
virtual ? FileDirEntry[] | Children [get] |
The children of this entry. Is null if the entry can never have any children (that is, it isn't a container of other entries). | |
Base class representing a File or Directory entry.
The program treats the File and Directory entries as this base class.
Definition at line 36 of file Composite_FileDirEntry.cs.
|
inline |
Default constructor.
Definition at line 91 of file Composite_FileDirEntry.cs.
References FileDirEntry.FileDirType, FileDirEntry.Length, FileDirEntry.Name, and FileDirEntry.WhenModified.
|
get |
The children of this entry. Is null if the entry can never have any children (that is, it isn't a container of other entries).
Definition at line 80 of file Composite_FileDirEntry.cs.
Referenced by Composite_FileAccess._FindEntry(), and Composite_Exercise.Composite_Exercise_FormatEntry().
|
getprotected set |
The type of this entry as represented by a value from the FileDirTypes enumeration.
Definition at line 42 of file Composite_FileDirEntry.cs.
Referenced by Composite_Exercise.Composite_Exercise_FormatEntry(), DirEntry.DirEntry(), FileDirEntry.FileDirEntry(), and FileEntry.FileEntry().
|
getprotected set |
The length in bytes of this entry. Directory entries are the sum of the length of all children.
Definition at line 61 of file Composite_FileDirEntry.cs.
Referenced by Composite_FileAccess._FindEntry(), Composite_Exercise.Composite_Exercise_FormatEntry(), FileDirEntry.FileDirEntry(), and FileEntry.FileEntry().
|
getprotected set |
The name of this entry.
Definition at line 51 of file Composite_FileDirEntry.cs.
Referenced by Composite_FileAccess._FindEntry(), Composite_Exercise.Composite_Exercise_FormatEntry(), DirEntry.DirEntry(), FileDirEntry.FileDirEntry(), FileEntry.FileEntry(), Visitor_Shop.PickupOrder(), Visitor_Shop.PlaceOrder(), and EntryInformation.ToString().
|
getprotected set |
When this entry was last modified.
Definition at line 70 of file Composite_FileDirEntry.cs.
Referenced by Composite_Exercise.Composite_Exercise_FormatEntry(), DirEntry.DirEntry(), FileDirEntry.FileDirEntry(), and FileEntry.FileEntry().