29 memset(
uid, 0,
sizeof(
uid));
38 assert ((idx > -1) && (idx < 3));
43 : size(0), attr(0), name(
""), time(time_t(0)), attrstr(
"") {
56 const uint32_t tHi,
const uint32_t tLo,
57 const char *
const _name) {
78 if ((uididx >= 0) && (uididx < 4))
116 ostream::fmtflags old = o.flags();
118 o << e.
attrstr <<
" " << dec << setw(10)
119 << setfill(
' ') << e.
size <<
" " << e.
time
152setSize(uint32_t sizeLo, uint32_t sizeHi) {
153 size = ((
unsigned long long)sizeHi << 32) + sizeLo;
157setSpace(uint32_t spaceLo, uint32_t spaceHi) {
158 space = ((
unsigned long long)spaceHi << 32) + spaceLo;
162setName(
char drive,
const char *
const volname) {
A class, representing a directory entry of the Psion.
PlpUID & getUID()
Retrieves the PlpUID object of a directory entry.
uint32_t getSize()
Retrieves the file size of a directory entry.
uint32_t getAttr()
Retrieves the file attributes of a directory entry.
const char * getName()
Retrieve the file name of a directory entry.
PlpDirent()
Default constructor.
void setName(const char *str)
Set the file name of a directory entry.
PsiTime getPsiTime()
Retrieve the modification time of a directory entry.
PlpDirent & operator=(const PlpDirent &e)
Assignment operator Mainly used by STL container classes.
A class representing information about a Disk drive on the psion.
PlpDrive()
Default constructor.
void setUID(uint32_t uid)
uint32_t getMediaAttribute()
Retrieve the attributes of the media.
void setSpace(uint32_t spaceLo, uint32_t spaceHi)
void setSize(uint32_t sizeLo, uint32_t sizeHi)
std::string getName()
Retrieve the volume name of the drive.
char getDrivechar()
Retrieve the drive letter of the drive.
uint64_t getSize()
Retrieve the total capacity of the drive.
void setMediaAttribute(uint32_t attr)
uint32_t getDriveAttribute()
Retrieve the attributes of the drive.
uint32_t getMediaType()
Retrieve the media type of the drive.
void setName(char drive, const char *const volname)
void setMediaType(uint32_t type)
uint32_t getUID()
Retrieve the UID of the drive.
void setDriveAttribute(uint32_t attr)
uint64_t getSpace()
Retrieve the free capacity on the drive.
A class, representing the UIDs of a file on the Psion.
PlpUID()
Default constructor.
uint32_t operator[](int idx)
Retrieve a UID value.
Psion time related utility class.
static const char *const media_types[]
ostream & operator<<(ostream &o, const PlpDirent &e)
static void appendWithDelim(string &s1, const char *const s2)