plptools
Loading...
Searching...
No Matches
PlpUID Class Reference

A class, representing the UIDs of a file on the Psion. More...

#include <plpdirent.h>

Public Member Functions

 PlpUID ()
 Default constructor. More...
 
 PlpUID (const uint32_t u1, const uint32_t u2, const uint32_t u3)
 Constructor. More...
 
uint32_t operator[] (int idx)
 Retrieve a UID value. More...
 

Private Attributes

long uid [3]
 

Friends

bool operator< (const PlpUID &u1, const PlpUID &u2)
 

Detailed Description

A class, representing the UIDs of a file on the Psion.

Every File on the Psion has a unique UID for determining the application-mapping. This class stores these UIDs. An object of this class is contained in every PlpDirent object.

Author
Fritz Elfert felfe.nosp@m.rt@t.nosp@m.o.com

Definition at line 39 of file plpdirent.h.

Constructor & Destructor Documentation

◆ PlpUID() [1/2]

PlpUID::PlpUID ( )

Default constructor.

Definition at line 28 of file plpdirent.cc.

◆ PlpUID() [2/2]

PlpUID::PlpUID ( const uint32_t  u1,
const uint32_t  u2,
const uint32_t  u3 
)

Constructor.

Create an instance, presetting all thre uid values.

Definition at line 32 of file plpdirent.cc.

Member Function Documentation

◆ operator[]()

uint32_t PlpUID::operator[] ( int  idx)

Retrieve a UID value.

Parameters
idxThe index of the desired UID. Range must be (0..2), otherwise an assertion is triggered.

Definition at line 36 of file plpdirent.cc.

Friends And Related Function Documentation

◆ operator<

bool operator< ( const PlpUID u1,
const PlpUID u2 
)
friend

Definition at line 66 of file plpdirent.h.

Member Data Documentation

◆ uid

long PlpUID::uid[3]
private

Definition at line 63 of file plpdirent.h.


The documentation for this class was generated from the following files: