34 memset(
uid, 0,
sizeof(
uid));
42 assert ((idx > -1) && (idx < 3));
61 const char *
const _name)
84 if ((uididx >= 0) && (uididx < 4))
95 pathComponents.push_back(
name);
97 pathComponents.push_back(
"");
115 ostream::fmtflags old = o.flags();
117 o << e.
attrstr <<
" " << dec << setw(10)
118 << setfill(
' ') << e.
size <<
" " << e.
time
A class, representing a directory entry of the Psion.
PlpUID & getUID()
Retrieves the PlpUID object of a directory entry.
uint32_t getAttr() const
Retrieves the file attributes of a directory entry.
std::string getPath() const
const char * getName() const
Retrieve the file name of a directory entry.
PlpDirent()
Default constructor.
bool isDirectory() const
Determine if the directory entry represents a directory.
void setName(const char *str)
Set the file name of a directory entry.
PsiTime getPsiTime()
Retrieve the modification time of a directory entry.
uint32_t getSize() const
Retrieves the file size of a directory entry.
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 char * dirname(const char *dir)
std::vector< std::string > split(const std::string &path, const PathFormat format)
Split a path, path, into its components, using the path separator, separator.
ostream & operator<<(ostream &o, const PlpDirent &e)