|
|
| version 1.48.2.11.2.5, 2003/03/24 13:43:41 | version 1.48.2.11.2.6, 2003/03/26 18:52:49 |
|---|---|
| Line 52 public: | Line 52 public: |
| int column_name2index(const String& column, bool bark) const; | int column_name2index(const String& column, bool bark) const; |
| /// @return item from @a column | /// @return item from @a column |
| const String* item(int column); | const String* item(size_t column); |
| /// @return item from @a column. '0' if no such column | /// @return item from @a column. '0' if no such column |
| const String* item(const String& column) { | const String* item(const String& column) { |
| Line 63 public: | Line 63 public: |
| /// saves to text file | /// saves to text file |
| void save(bool nameless_save, const String& file_spec); | void save(bool nameless_save, const String& file_spec); |
| bool locate(int column, const String& value); | bool locate(size_t column, const String& value); |
| bool locate(const String& column, const String& value); | bool locate(const String& column, const String& value); |
| private: | private: |
| // current row | // current row |
| int fcurrent; | size_t fcurrent; |
| // columns | // columns |
| columns_type fcolumns; | columns_type fcolumns; |
| Line 81 private: | Line 81 private: |
| // we own columns? | // we own columns? |
| bool valid(int index) const { return index>=0 && index<count(); } | bool valid(size_t index) const { return index>=0 && index<count(); } |
| }; | }; |