--- parser3/src/main/pa_table.C 2002/08/01 11:41:19 1.49 +++ parser3/src/main/pa_table.C 2003/01/21 15:51:15 1.53 @@ -1,11 +1,11 @@ /** @file Parser: table class. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_TABLE_C="$Date: 2002/08/01 11:41:19 $"; +static const char* IDENT_TABLE_C="$Date: 2003/01/21 15:51:15 $"; //#include @@ -31,25 +31,15 @@ Table::Table(Pool& apool, } } -Table::Table(const Table& source) : - Array(source), +Table::Table(Pool& apool, const Table& source, int offset, int limit) : + Array(apool, limit/*may be more than needed, no harm done*/), forigin_string(source.forigin_string), - fcurrent(source.fcurrent), - fcolumns(source.fcolumns), - name2number(source.name2number) { - -} - -Table::Table(Pool& apool, const Table& source, int offset) : - Array(apool), - - forigin_string(source.forigin_string), - fcurrent(source.fcurrent), + fcurrent(0), fcolumns(source.fcolumns), name2number(source.name2number) { - append_array(source, offset); + append_array(source, offset, limit); } int Table::column_name2index(const String& column_name, bool bark) const {