next up previous contents
Next: Automated Bank Class Header Up: Bank Classes Previous: Accessing Data in a

Storing/Erasing Banks in a Record

There are several means of storing a bank in a record. As mentioned in a previous section, one can literally create a bank in a record. This is the most CPU efficient means of creating a bank provided the bank is intended to be in the record in the first place. Such a creation always involves appending the bank to the end of the record, just as the method TRY_Abstract_Record::append() does.

The method insert() is provided in the record classes which provides the user with more control over where the bank goes into the record, though the method is less CPU-efficient than a simple append().

There are also several means of removing a bank from a record. The method erase() removes a single bank pointed to by its record iterator argument. The bank is not returned. The method remove() erases all banks matching its bank name argument from a record. Finally the new method extract() is identical to erase() except that the erased bank is returned to the user.



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