69 | | 2. define constructor |
70 | | |
71 | | Default constructor and copy constructor should be disabled from outside. |
72 | | So, they should be explicitly declared in the private section. |
73 | | The only public constructor is the one that takes Scantable object as its argument. |
| 69 | === 2. define constructor === |
| 70 | |
| 71 | Default constructor and copy constructor should be disabled from outside. |
| 72 | So, they should be explicitly declared in the private section. |
| 73 | The only public constructor is the one that takes Scantable object as its argument. |
120 | | The constructor of !FillerBase class sets Scantable object given as a target. |
121 | | |
122 | | 3. implement open() method |
123 | | |
124 | | You must implement open() method that gets an access to the data file. |
125 | | In almost case, it will be realized by the open() method of Reader object. |
126 | | You can call setHeader() to fill header of target Scantable. |
| 120 | The constructor of !FillerBase class sets Scantable object given as a target. |
| 121 | |
| 122 | === 3. implement open() method === |
| 123 | |
| 124 | You must implement open() method that gets an access to the data file. |
| 125 | In almost case, it will be realized by the open() method of Reader object. |
| 126 | You can call setHeader() to fill header of target Scantable. |
145 | | The header variable must be set in the method. |
146 | | |
147 | | 4. implement fill() method |
148 | | |
149 | | You must implement fill() method that performs 1) to fill row and 2) to add row to target Scantable. |
150 | | As mentioned above, a lot of useful methods are available. |
| 145 | The header variable must be set in the method. |
| 146 | |
| 147 | === 4. implement fill() method === |
| 148 | |
| 149 | You must implement fill() method that performs 1) to fill row and 2) to add row to target Scantable. |
| 150 | As mentioned above, a lot of useful methods are available. |