wiki:HowToImplementNewFiller

Version 1 (modified by Takeshi Nakazato, 14 years ago) ( diff )

--

How To Implement New Filler

Concept

The Filler is only responsible for filling Scantable. It does not have a direct access to the data file. Retrieving various information from the data is done by Reader class, which is separated from the Filler. The Filler has appropriate Reader object that depends on type of the data file. The Filler does the following things:

  • set target Scantable
  • open data file (via Reader object)
  • get information from the Reader object
  • fill Scantable
  • close data file (via Reader object)

The target Scantable must be prepared outside the Filler and should be passed to the Filler at the beginning of filling process. It should be empty.

The filling process goes on row-by-row manner. It means that the filling is actually an iteration process over all rows. The process contains:

  • get information for one row from the Reader object
  • fill row
  • add row to Scantable

Design

Implementation

If you want to define new filler, it must inherit FillerBase class.

Note: See TracWiki for help on using the wiki.