aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plpdirent.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2001-02-04 20:58:07 +0000
committerFritz Elfert <felfert@to.com>2001-02-04 20:58:07 +0000
commit80a6f091c9f1077180263be52f547e0d5af88895 (patch)
treea7dad18f41b179b0e2825ca61d17cc7846a1210c /lib/plpdirent.h
parentd80b8811641f8305ba6a1215b5393c6de3e6792e (diff)
downloadplptools-80a6f091c9f1077180263be52f547e0d5af88895.tar.gz
plptools-80a6f091c9f1077180263be52f547e0d5af88895.tar.bz2
plptools-80a6f091c9f1077180263be52f547e0d5af88895.zip
- More KDOC comments.
- Fix in ppsocket.cc: Add a cast for first parameter of gethostbyaddr()
Diffstat (limited to 'lib/plpdirent.h')
-rw-r--r--lib/plpdirent.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/lib/plpdirent.h b/lib/plpdirent.h
index ab1f3a4..9a25a67 100644
--- a/lib/plpdirent.h
+++ b/lib/plpdirent.h
@@ -5,13 +5,36 @@
#include "psitime.h"
#include "rfsv.h"
+/**
+ * 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 @ref PlpDirent
+ * object.
+ *
+ * @author Fritz Elfert <felfert@to.com>
+ */
class PlpUID
{
friend inline bool operator<(const PlpUID &u1, const PlpUID &u2);
public:
+ /**
+ * Default constructor.
+ */
PlpUID();
+
+ /**
+ * Constructor.
+ * Create an instance, presetting all thre uid values.
+ */
PlpUID(const long u1, const long u2, const long u3);
+ /**
+ * Retrieve a UID value.
+ *
+ * @param idx The index of the desired UID. Range must be (0..2),
+ * otherwise an assertion is triggered.
+ */
long operator[](int idx);
private:
@@ -24,8 +47,11 @@ inline bool operator<(const PlpUID &u1, const PlpUID &u2) {
/**
* A class, representing a directory entry of the Psion.
- * Objects of this type are used by @ref rfsv::readdir and
- * @ref rfsv::dir for returning the entries of a directory.
+ * Objects of this type are used by @ref rfsv::readdir ,
+ * @ref rfsv::dir and @ref rfsv::fgeteattr for returning
+ * the entries of a directory.
+ *
+ * @author Fritz Elfert <felfert@to.com>
*/
class PlpDirent {
friend class rfsv32;