next up previous contents
Next: A very simple conduit: Up: How the conduits work Previous: The PilotDatabase classes for   Contents

The PilotRecord classes for working with records

Each database consists of several database records, so we also need a class PilotRecord to work with records. A PilotRecord is just a long string of binary data, without any meaning so far. You will have to implement your own classes that take the data from the record and turn it into usable values (use the database format specification for the database you are working with). The class PilotAppCategory can be used as base class for this, and the pack() method packs the human-readable variable values into one whole binary string that is then sent to the handheld as the data of the record. Usually you don't create an instance of PilotRecord yourself, but either get a PilotRecord* from one of the methods of the PilotDatabase class, or you pack your own subclass of PilotAppCategory (e.g. PilotTodoEntry, PilotAddress, PilotDateEntry) with a call to pack().

The PilotRecord class has the following important methods:


next up previous contents
Next: A very simple conduit: Up: How the conduits work Previous: The PilotDatabase classes for   Contents
Reinhold Kainhofer 2003-01-13