#include <Directory.h>
Inheritance diagram for DirectoryEntry:
It represents the Path and information of a file or directory.
Definition at line 317 of file Directory.h.
Public Member Functions | |
DirectoryEntry * | Clone () |
Creates a new instance of the directory entry with the same content. | |
DirectoryEntry (const char *path) | |
Creates a new directory entry. | |
DirectoryEntry (class Path *Path) | |
Creates a new directory entry. | |
bool | Exists () |
Returns, if the file or directory, the path points to, exists. | |
long | GetAccessTime () |
Returns the last access time. | |
int | GetAccessTimeDay () |
Returns the days of the last access time. | |
int | GetAccessTimeHour () |
Returns the hours of the last access time. | |
int | GetAccessTimeMinute () |
Returns the minutes of the last access time. | |
int | GetAccessTimeMonth () |
Returns the months of the last access time. | |
int | GetAccessTimeSecond () |
Returns the seconds of the last access time. | |
int | GetAccessTimeYear () |
Returns the years of the last access time. | |
long | GetCreateTime () |
Returns the last creation time. | |
int | GetCreateTimeDay () |
Returns the days of the last creation time. | |
int | GetCreateTimeHour () |
Returns the hours of the last creation time. | |
int | GetCreateTimeMinute () |
Returns the minutes of the last creation time. | |
int | GetCreateTimeMonth () |
Returns the months of the last creation time. | |
int | GetCreateTimeSecond () |
Returns the seconds of the last creation time. | |
int | GetCreateTimeYear () |
Returns the years of the last creation time. | |
long | GetFlags () |
Returns the flags of the file or directory. | |
long | GetModifyTime () |
Returns the last modification time. | |
int | GetModifyTimeDay () |
Returns the days or the last modification time. | |
int | GetModifyTimeHour () |
Returns the hours or the last modification time. | |
int | GetModifyTimeMinute () |
Returns the minutes or the last modification time. | |
int | GetModifyTimeMonth () |
Returns the months or the last modification time. | |
int | GetModifyTimeSecond () |
Returns the seconds or the last modification time. | |
int | GetModifyTimeYear () |
Returns the years or the last modification time. | |
DirectoryEntry * | GetNext () const |
Returns the next ContainingListItem in the list chain. | |
DirectoryEntry * | GetNextEntry () |
Returns the next directory entry. | |
Path * | GetPath () |
Returns the path of the file or directory. | |
DirectoryEntry * | GetPrev () const |
Returns the previous ContainingListItem in the list chain. | |
DirectoryEntry * | GetPrevEntry () |
Returns the previous directory entry. | |
unsigned long | GetSize () |
Returns the file's size. | |
void | Refresh () |
Refreshed the file or directory's attributes from the disk. | |
~DirectoryEntry () | |
Destroys the directory entry. | |
Private Member Functions | |
DirectoryEntry () | |
Creates a new directory entry. | |
void | Invalidate () |
Invalidates all directory entry's data. | |
Static Private Member Functions | |
void | InvalidateTime (struct tm *time) |
Invalidates a time attribute of the entry's data. | |
Private Attributes | |
tm | AccessTime |
The last access time. | |
tm | CreateTime |
The creation time. | |
friend | Directory |
bool | ExistsFlag |
If the file or directory exists. | |
long | Flags |
The file or directory flags. | |
tm | ModifyTime |
The last modification time. | |
Path * | Path |
The complete path to the file or directory. | |
unsigned long | Size |
The size of the file. |
|
Creates a new directory entry.
|
|
Creates a new directory entry.
|
|
Creates a new directory entry.
|
|
Destroys the directory entry.
|
|
Creates a new instance of the directory entry with the same content.
|
|
Returns, if the file or directory, the path points to, exists.
|
|
Returns the last access time.
|
|
Returns the days of the last access time.
|
|
Returns the hours of the last access time.
|
|
Returns the minutes of the last access time.
|
|
Returns the months of the last access time.
|
|
Returns the seconds of the last access time.
|
|
Returns the years of the last access time.
|
|
Returns the last creation time.
|
|
Returns the days of the last creation time.
|
|
Returns the hours of the last creation time.
|
|
Returns the minutes of the last creation time.
|
|
Returns the months of the last creation time.
|
|
Returns the seconds of the last creation time.
|
|
Returns the years of the last creation time.
|
|
Returns the flags of the file or directory.
|
|
Returns the last modification time.
|
|
Returns the days or the last modification time.
|
|
Returns the hours or the last modification time.
|
|
Returns the minutes or the last modification time.
|
|
Returns the months or the last modification time.
|
|
Returns the seconds or the last modification time.
|
|
Returns the years or the last modification time.
|
|
Returns the next ContainingListItem in the list chain.
|
|
Returns the next directory entry.
|
|
Returns the path of the file or directory.
|
|
Returns the previous ContainingListItem in the list chain.
|
|
Returns the previous directory entry.
|
|
Returns the file's size.
|
|
Invalidates all directory entry's data. This is done when the entry is refreshed, and the file or directory cannot be found. |
|
Invalidates a time attribute of the entry's data. This is done when the entry is refreshed, and the file or directory cannot be found.
|
|
Refreshed the file or directory's attributes from the disk.
|
|
The last access time.
Definition at line 326 of file Directory.h. |
|
The creation time.
Definition at line 331 of file Directory.h. |
|
Definition at line 319 of file Directory.h. |
|
If the file or directory exists.
Definition at line 336 of file Directory.h. |
|
The file or directory flags.
Definition at line 341 of file Directory.h. |
|
The last modification time.
Definition at line 353 of file Directory.h. |
|
The complete path to the file or directory.
Definition at line 358 of file Directory.h. |
|
The size of the file.
Definition at line 363 of file Directory.h. |