class PlpDirent

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

Definition#include <lib/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 ()

Default constructor

 PlpDirent (const PlpDirent &d)

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)

Initializing Constructor

PlpDirent ()

Default destructor.

u_int32_t  getSize ()

Retrieves the file size of a directory entry.

Returns: The file size in bytes.

u_int32_t  getAttr ()

Retrieves the file attributes of a directory entry.

Returns: The generic attributes ( rfsv:file_attribs ).

u_int32_t  getUID (int uididx)

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 ()

Retrieves the PlpUID object of a directory entry.

Returns: The PlpUID object.

const char * getName ()

Retrieve the file name of a directory entry.

Returns: The name of the file.

PsiTime  getPsiTime ()

Retrieve the modification time of a directory entry.

Returns: A PsiTime object, representing the time.

void  setName (const char *str)

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)

Assignment operator Mainly used by STL container classes.

Parameters:
eThe new value to assign.

Returns: The modified object.

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

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