Defined in file: hzDirectory.h

Directory entry. Either file or directory

Constructors/Detructors

hzDirent*hzDirent(void)
void~hzDirent(void)m_Kinder.Clear() ;

Public Methods:

uint32_tCtime(void)
uint16_tGroup(void)
voidInitNorm(hzString& pardir)hzString& name, uint64_t size, uint32_t ino, uint32_t ctime, uint32_t mtime, uint32_t mode, uint32_t uid, uint32_t gid, uint32_t nlink, Initialize a directory entry explicitly. This method is best when populating from a file listing of config file. Please use InitStat when reading from the file system. Returns: None
voidInitStat(hzString& pardir)hzString& name, stat& fs, Initialize a directory entry from a struct stat instance. This method is best when reading the filesystem directly. Please use InitNorm if populating a hzDirent instance from a file listing or config file. Returns: None
uint32_tInode(void)
boolIsChanged(void)
boolIsCreate(void)
boolIsDelete(void)
boolIsDir(void)
boolIsInert(void)
boolIsModify(void)
voidMkCreate(void)
voidMkDelete(void)
voidMkInert(void)
voidMkModify(void)
uint32_tMode(void)
uint32_tMtime(void)
uint16_tNlink(void)
uint16_tOwner(void)
hzStringPath(void)If this is a dir return name (the path) or if this is a file return the path of the parent dir
voidSetCtime(hzXDate& d)
voidSetCtime(uint32_t ctime)
voidSetMtime(hzXDate& d)
voidSetMtime(uint32_t mtime)
voidSetName(const char* name)
voidSetName(hzString& name)
voidSetSize(uint32_t nSize)
uint32_tSize(void)
hzStringstrName(void)
const char*txtName(void)

Overloaded operators:

booloperator<(hzDirent& op)Both are dirs
ostream&operator<<(ostream& os)hzDirent& de,
hzDirent&operator=(hzDirent& op)
booloperator==(hzDirent& op)If both are directories they are deemed equal simply if the names match.
booloperator>(hzDirent& op)Both are dirs
istream&operator>>(istream& is)hzDirent& de,

Member Variables:

uint32_tm_CtimeDate & time when file created
uint16_tm_GroupGroup Id of owner (unused under Windows)
uint32_tm_InodeInode value
uint16_tm_LinksNumber of hard links
uint32_tm_ModeUNIX Permissions
uint32_tm_MtimeDate & time of last modification
hzStringm_NameThis will be full path if this is a dir, only the name if a file
uint16_tm_OwnerUser Id of owner (unused under Windows)
uint64_tm_SizeSize in bytes (assuming 64 bit OS)
uint16_tm_StatusAppliction assigned value (eg version)
hzStringm_parentThe parent directory