class PlpDirent

A class, representing a directory entry of the Psion. More...

Definition#include <plpdirent.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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.

 PlpDirent ()

PlpDirent

Default constructor

 PlpDirent (const PlpDirent &d)

PlpDirent

A copy constructor. Mainly used by STL container classes.

Parameters:
dThe object to be used as initializer.

 PlpDirent (const u_int32_t size, const u_int32_t attr, const u_int32_t tHi, const u_int32_t tLo, const char * const name)

PlpDirent

Initializing Constructor

 ~PlpDirent ()

~PlpDirent

Default destructor.

u_int32_t  getSize ()

getSize

Retrieves the file size of a directory entry.

Returns: The file size in bytes.

u_int32_t  getAttr ()

getAttr

Retrieves the file attributes of a directory entry.

Returns: The generic attributes ( rfsv:file_attribs ).

u_int32_t  getUID (int uididx)

getUID

Retrieves the UIDs of a directory entry. This method returns always 0 with a Series3.

Parameters:
uididxThe index of the UID to retrieve (0 .. 2).

Returns: The selected UID or 0 if the index is out of range.

PlpUIDgetUID ()

getUID

Retrieves the PlpUID object of a directory entry.

Returns: The PlpUID object.

const char * getName ()

getName

Retrieve the file name of a directory entry.

Returns: The name of the file.

PsiTime  getPsiTime ()

getPsiTime

Retrieve the modification time of a directory entry.

Returns: A PsiTime object, representing the time.

void  setName (const char *str)

setName

Set the file name of a directory entry. This is currently used in plpbackup only for changing the name to the full path. It does NOT change the name of the corresponding file on the Psion.

Parameters:
strThe new name of the file.

PlpDirentoperator= (const PlpDirent &e)

operator=

Assignment operator Mainly used by STL container classes.

Parameters:
eThe new value to assign.

Returns: The modified object.

friend std::ostream & operator<< (std::ostream &o, const PlpDirent &e)

operator<<

Prints the object contents. The output is in human readable similar to the output of a "ls" command.