Lire::AsciiDlf::Group - interface to lire:group XML entities use Lire::AsciiDlf::Group; Lire::AsciiDlf::Group offers various functions to handle <lire:group> XML entities. This module is used in Lire::Merge::Group and in Lire::AsciiDlf::AsciiDlfFactory.

guess_extra_entries
guess_extra_entries takes a limit as set in a <lire:group ...> entity in a Report specification file. It returns a number of extra records to store in the generated XML report file (this number should be added to the user-supplied limit). This is done in order to have enough information to be able to do merging later. This function is called in init_report. Depending on the limit supplied by the user, we add an extra 5 till 100% of the data.

binary_insert
Recursive function that uses a binary search to insert $item in $array using $cmp as comparison operator. $first_idx and $max_idx specify the boundaries of the search. Search ends when $first_idx == $max_idx or when $sort_key sorts at or before $first_idx or at or after $max_idx $Id: Group.pm,v 1.27 2002/06/23 19:23:40 vanbaal Exp $ Copyright (C) 2001, 2002 Stichting LogReport Foundation LogReport@LogReport.org This file is part of Lire. Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. Francis J. Lacoste <flacoste@logreport.org>