#include <c4d_file.h>
Helper to browse through files.
Public Member Functions | |
void | Init (const Filename &directory, Int32 flags) |
Bool | GetNext () |
Int64 | GetSize () |
Bool | IsDir () |
Bool | IsHidden () |
Bool | IsBundle () |
Bool | IsReadOnly () |
void | GetFileTime (Int32 mode, LocalFileTime *out) |
Filename | GetFilename () |
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 | ( | ) |
Gets the next file or subdirectory in the browsed directory.
Int64 GetSize | ( | ) |
Gets the size for the current file.
Bool IsDir | ( | ) |
Checks if the current element is a directory.
Bool IsHidden | ( | ) |
Checks if the current file or directory is hidden.
Bool IsBundle | ( | ) |
Checks if the current file or directory is a bundle.
Bool IsReadOnly | ( | ) |
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 | ( | ) |
Gets the name of the current file or directory.