MCPcopy Create free account
hub / github.com/PDAL/PDAL / write

Function write

pdal/FlexWriter.hpp:123–136  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

generateFilenameFunction · 0.85
prerunFileFunction · 0.85
doneFileFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected