#include <c4d_file.h>
Helper to browse through files.
Public Member Functions | |
void | Init (const Filename &directory, Int32 flags) |
Bool | GetNext (void) |
Int64 | GetSize (void) |
Bool | IsDir (void) |
Bool | IsHidden (void) |
Bool | IsBundle (void) |
Bool | IsReadOnly (void) |
void | GetFileTime (Int32 mode, LocalFileTime *out) |
Filename | GetFilename (void) |
Private Member Functions | |
BrowseFiles () | |
~BrowseFiles () | |
Alloc/Free | |
static BrowseFiles * | Alloc () |
static void | Free (BrowseFiles *&bf) |
|
private |
|
private |
|
static |
|
static |
Initializes the class to browse a certain directory.
[in] | directory | The directory to browse. |
[in] | flags | The browser files flags: BROWSEFILES |
Bool GetNext | ( | void | ) |
Gets the next file or subdirectory in the browsed directory.
Int64 GetSize | ( | void | ) |
Gets the size for the current file.
Bool IsDir | ( | void | ) |
Checks if the current element is a directory.
Bool IsHidden | ( | void | ) |
Checks if the current file or directory is hidden.
Bool IsBundle | ( | void | ) |
Checks if the current file or directory is a bundle.
Bool IsReadOnly | ( | void | ) |
Checks if the current file or directory is read-only.
void GetFileTime | ( | Int32 | mode, |
LocalFileTime * | out | ||
) |
Gets a time for the current file or directory.
[in] | mode | The file time mode: GE_FILETIME |
[out] | out | Filled with the retrieved file time. The caller owns the pointed file time. |
Filename GetFilename | ( | void | ) |
Gets the name of the current file or directory.