| | 1 | = How To Implement New Filler = |
| | 2 | == Concept == |
| | 3 | The Filler is only responsible for filling Scantable. It does not have a direct access to the data file. |
| | 4 | Retrieving various information from the data is done by Reader class, which is separated from |
| | 5 | the Filler. The Filler has appropriate Reader object that depends on type of the data file. |
| | 6 | The Filler does the following things: |
| | 7 | |
| | 8 | * set target Scantable |
| | 9 | * open data file (via Reader object) |
| | 10 | * get information from the Reader object |
| | 11 | * fill Scantable |
| | 12 | * close data file (via Reader object) |
| | 13 | |
| | 14 | 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. |
| | 15 | |
| | 16 | 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: |
| | 17 | |
| | 18 | * get information for one row from the Reader object |
| | 19 | * fill row |
| | 20 | * add row to Scantable |
| | 21 | |
| | 22 | == Design == |
| | 23 | |
| | 24 | |
| | 25 | |
| | 26 | == Implementation == |
| | 27 | If you want to define new filler, it must inherit !FillerBase class. |