|
plptools
|
A class, representing a directory entry of the Psion. More...
#include <plpdirent.h>

Public Member Functions | |
| PlpDirent () | |
| Default constructor. More... | |
| PlpDirent (const PlpDirent &d) | |
| A copy constructor. More... | |
| PlpDirent (const uint32_t size, const uint32_t attr, const uint32_t tHi, const uint32_t tLo, const char *const name) | |
| Initializing Constructor. More... | |
| ~PlpDirent () | |
| Default destructor. More... | |
| uint32_t | getSize () |
| Retrieves the file size of a directory entry. More... | |
| uint32_t | getAttr () |
| Retrieves the file attributes of a directory entry. More... | |
| uint32_t | getUID (int uididx) |
| Retrieves the UIDs of a directory entry. More... | |
| PlpUID & | getUID () |
| Retrieves the PlpUID object of a directory entry. More... | |
| const char * | getName () |
| Retrieve the file name of a directory entry. More... | |
| PsiTime | getPsiTime () |
| Retrieve the modification time of a directory entry. More... | |
| void | setName (const char *str) |
| Set the file name of a directory entry. More... | |
| PlpDirent & | operator= (const PlpDirent &e) |
| Assignment operator Mainly used by STL container classes. More... | |
Private Attributes | |
| uint32_t | size |
| uint32_t | attr |
| PlpUID | UID |
| PsiTime | time |
| std::string | attrstr |
| std::string | name |
Friends | |
| class | rfsv32 |
| class | rfsv16 |
| std::ostream & | operator<< (std::ostream &o, const PlpDirent &e) |
| Prints the object contents. More... | |
A class, representing a directory entry of the Psion.
Objects of this type are used by rfsv::readdir , rfsv::dir and rfsv::fgeteattr for returning the entries of a directory.
Definition at line 78 of file plpdirent.h.
| PlpDirent::PlpDirent | ( | ) |
Default constructor.
Definition at line 42 of file plpdirent.cc.
| PlpDirent::PlpDirent | ( | const PlpDirent & | d | ) |
A copy constructor.
Mainly used by STL container classes.
| d | The object to be used as initializer. |
Definition at line 46 of file plpdirent.cc.
| PlpDirent::PlpDirent | ( | const uint32_t | size, |
| const uint32_t | attr, | ||
| const uint32_t | tHi, | ||
| const uint32_t | tLo, | ||
| const char *const | name | ||
| ) |
Initializing Constructor.
Definition at line 55 of file plpdirent.cc.
|
inline |
Default destructor.
Definition at line 105 of file plpdirent.h.
| uint32_t PlpDirent::getAttr | ( | ) |
Retrieves the file attributes of a directory entry.
Definition at line 71 of file plpdirent.cc.
| const char * PlpDirent::getName | ( | ) |
Retrieve the file name of a directory entry.
Definition at line 88 of file plpdirent.cc.
| PsiTime PlpDirent::getPsiTime | ( | ) |
Retrieve the modification time of a directory entry.
Definition at line 93 of file plpdirent.cc.
| uint32_t PlpDirent::getSize | ( | ) |
Retrieves the file size of a directory entry.
Definition at line 66 of file plpdirent.cc.
| PlpUID & PlpDirent::getUID | ( | ) |
Retrieves the PlpUID object of a directory entry.
Definition at line 83 of file plpdirent.cc.
| uint32_t PlpDirent::getUID | ( | int | uididx | ) |
Retrieves the UIDs of a directory entry.
This method returns always 0 with a Series3.
| uididx | The index of the UID to retrieve (0 .. 2). |
Definition at line 76 of file plpdirent.cc.
Assignment operator Mainly used by STL container classes.
| e | The new value to assign. |
Definition at line 103 of file plpdirent.cc.
| void PlpDirent::setName | ( | const char * | str | ) |
Set the file name of a directory entry.
This is currently unused. It does NOT change the name of the corresponding file on the Psion.
| str | The new name of the file. |
Definition at line 98 of file plpdirent.cc.
|
friend |
Prints the object contents.
The output is in human readable similar to the output of a "ls" command.
Definition at line 114 of file plpdirent.cc.
|
friend |
Definition at line 80 of file plpdirent.h.
|
friend |
Definition at line 79 of file plpdirent.h.
|
private |
Definition at line 181 of file plpdirent.h.
|
private |
Definition at line 184 of file plpdirent.h.
|
private |
Definition at line 185 of file plpdirent.h.
|
private |
Definition at line 180 of file plpdirent.h.
|
private |
Definition at line 183 of file plpdirent.h.
|
private |
Definition at line 182 of file plpdirent.h.