#include <ctfilesystem2.h>
Public Types | |
enum | Attributes { Attr_USED = 0x0001, Attr_READ = 0x0002, Attr_WRITE = 0x0004, Attr_DIR = 0x0008, Attr_HIDDEN = 0x0010 } |
Public Member Functions | |
Constructors and destructors | |
The only constructor you will be confronted with is that without arguments, since you will rarely need create a valid direntry yourself. | |
CTDirEntry () | |
CTDirEntry (int parent, const string &name, unsigned int attribs=Attr_USED, unsigned int size=0, int firstblock=-1) | |
CTDirEntry (const string &s) | |
CTDirEntry (int parent, int indexInParent=-1) | |
~CTDirEntry () | |
Retrieving information about this file or directory | |
const string & | name () const |
unsigned int | attributes () const |
int | size () const |
Retrieving internal information | |
The members returned here are internal and not part of the API, so you should not expect them to be unchanged in future versions ! | |
bool | changed () const |
int | firstBlock () const |
int | parent () const |
int | indexInParent () const |
Internal setters | |
void | setAttributes (unsigned int i) |
void | setSize (unsigned int i) |
void | setName (const string &s) |
void | setFirstBlock (int i) |
void | setParent (int i) |
void | setIndexInParent (int i) |
void | setChanged (bool b) |
Internal Conversion operations | |
string | toString () |
string | dump () |
|
Attributes of a file or folder. |
|
This is the only constructor interesting for application developers. |
|
|
|
|
|
|
|
|
|
Returns the attributes of this file or directory (Attributes)
|
|
Was this entry changed since last read/write ?
|
|
|
|
Returns the number of the first block of this file.
|
|
This is the position within the parent folder where this entry is contained. If -1 then this entry is a new one and has not been stored yet.
|
|
Returns the name of this file or directory.
|
|
This is the first block of the parent. This can be used to scan the parent for entries. The parent is the folder where this entry is contained.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Size of this file. If this entry describes a directory then it's is zero.
|
|
|