next up previous contents
Next: Record Iterators Up: Components Previous: User Data Accessors

Record and Files

Programmers working in the Framework/AC++ environment generally do not have to read/write records or manipulate files directly, just in the past. In the event-processing part of a Framework module, the programmer is given a pointer to an TRY_Abstract_Record:

TRY_Abstract_Record *p_record ;

without having to select the exact implementation of the record, and without having to read an event into the record. The Framework I/O modules will select an implementation for the TRY_Abstract_Record pointer. All the user needs to know is that all operations on the record are performed by dereferencing the pointer. For instance, to append an LRID bank called ``my_LRID_bank'' to the event record (if it is called p_record), one would use:

p_record->append(my_LRID_bank) ;

The discussion of record modifiers, such as append() is postponed to a later section of this guide, when the use of combinations of Trybos components is described.

There is only one test or accessor that a programmers developing Framework modules may be interested using with records. One can access the size of a record in units of integer with the method size().



Robert Kennedy
Mon Jul 28 13:23:28 CDT 1997