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

Method writeCSVHeader

io/TextWriter.cpp:240–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239
240void TextWriter::writeCSVHeader(PointTableRef table)
241{
242 const PointLayoutPtr layout(table.layout());
243 for (auto di = m_dims.begin(); di != m_dims.end(); ++di)
244 {
245 if (di != m_dims.begin())
246 *m_stream << m_delimiter;
247
248 if (m_quoteHeader)
249 *m_stream << "\"" << layout->dimName(di->id) << "\"";
250 else
251 *m_stream << layout->dimName(di->id);
252 }
253 *m_stream << m_newline;
254}
255
256
257void TextWriter::processOneCSV(PointRef& point)

Callers

nothing calls this directly

Calls 3

dimNameMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected