--- parser3/src/main/pa_table.C 2001/03/12 13:13:21 1.13 +++ parser3/src/main/pa_table.C 2001/03/25 09:10:30 1.18 @@ -1,9 +1,11 @@ -/* - Parser +/** @file + Parser: table class. + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_table.C,v 1.13 2001/03/12 13:13:21 paf Exp $ + $Id: pa_table.C,v 1.18 2001/03/25 09:10:30 paf Exp $ */ #include @@ -12,12 +14,12 @@ #include "pa_pool.h" Table::Table(Pool& apool, - const String& asource, + const String *aorigin_string, Array *acolumns, int initial_rows) : Array(apool, initial_rows), - fsource(asource), + forigin_string(aorigin_string), fcurrent(0), fcolumns(acolumns), name2number(pool(), false) { @@ -30,7 +32,7 @@ Table::Table(Pool& apool, } const Array &Table::at(int index) { - return *static_cast(get(index)); + return *const_cast(static_cast(get(index))); } const String *Table::item(const String& column_name) {