This essentially moves ready() and done() into write(), which means that they get executed once for each view. The check for m_hashPos is a test to see if the filename specification is a template. If it's not a template, ready() and done() are taken care of in the ready() and done() functions in this class.
| 121 | // not a template, ready() and done() are taken care of in the ready() |
| 122 | // and done() functions in this class. |
| 123 | virtual void write(const PointViewPtr view) final |
| 124 | { |
| 125 | if (m_hashPos != std::string::npos) |
| 126 | { |
| 127 | if (view->size() == 0) |
| 128 | return; |
| 129 | // Ready the file - we're writing each view separately. |
| 130 | readyFile(generateFilename(), view->spatialReference()); |
| 131 | prerunFile({view}); |
| 132 | } |
| 133 | writeView(view); |
| 134 | if (m_hashPos != std::string::npos) |
| 135 | doneFile(); |
| 136 | } |
| 137 | |
| 138 | virtual void done(PointTableRef table) final |
| 139 | { |
nothing calls this directly
no test coverage detected