--- parser3/src/include/pa_table.h 2020/12/15 17:10:32 1.71 +++ parser3/src/include/pa_table.h 2024/11/04 03:53:25 1.74 @@ -1,14 +1,14 @@ /** @file Parser: table class decl. - Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_TABLE_H #define PA_TABLE_H -#define IDENT_PA_TABLE_H "$Id: pa_table.h,v 1.71 2020/12/15 17:10:32 moko Exp $" +#define IDENT_PA_TABLE_H "$Id: pa_table.h,v 1.74 2024/11/04 03:53:25 moko Exp $" #include "pa_types.h" #include "pa_hash.h" @@ -32,9 +32,7 @@ class Table: public Array public: typedef ArrayString* columns_type; - Table( - columns_type acolumns, - size_t initial_rows=3); + Table(columns_type acolumns, size_t initial_rows=3); Table(const Table& src, Action_options& options); /// gets column names @@ -58,6 +56,8 @@ public: */ int column_name2index(const String& column, bool bark) const; + void column_names_init(); + /// @return item from @a column const String* item(size_t column); @@ -124,7 +124,6 @@ public: return false; } - bool locate(int column, const String& value, Action_options& options); bool locate(const String& column, const String& value, Action_options& options);