Data::TableReader::Decoder(3pm)

Data::TableReader::Decoder3pm

Base class for table decoders

Version

version 0.021

Overview

This is an abstract base class describing the API for decoders.

A decoder's job is to iterate table rows of a file containing tabular data. If a file provides multiple tables of data (such as worksheets, or <TABLE> tags) then the decode should also support the "next_dataset" method.

Attributes

filename

Set by TableReader. Useful for logging.

file_handle

Set by TableReader. This is what the iterator should parse.

Methods

iterator

This must be implemented by the subclass, to return an instance of Data::TableReader::Iterator. The iterator should return an arrayref each time it is called, and accept one optional argument of a "slice" needed from the record. All decoder iterators return arrayrefs, so the slice should be an arrayref of column indicies equivalent to the perl syntax

  @row[@$slice]

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

Michael Conrad <[email protected]>

From libdata-tablereader-perl 0.021-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.