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

Method writeIds

dimbuilder/DimBuilder.cpp:389–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
388
389void DimBuilder::writeIds(std::ostream& out)
390{
391 out << "enum class Id\n";
392 out << "{\n";
393 out << " Unknown,\n";
394 for (auto di = m_dims.begin(); di != m_dims.end(); ++di)
395 {
396 DimSpec& d = *di;
397 out << " " << d.m_name;
398 size_t line_size = 4 + d.m_name.size();
399 if (di + 1 != m_dims.end())
400 {
401 out << ",";
402 line_size += 1;
403 }
404 out << " ///< \\brief " << d.m_description << "\n"
405 << std::string(line_size, ' ') << " ///< \\default " << getTypename(d.m_type) << "\n";
406 }
407 out << "};\n";
408 out << "typedef std::vector<Id> IdList;\n";
409 out << "\n";
410}
411
412
413void DimBuilder::writeDescriptions(std::ostream& out)

Callers

nothing calls this directly

Calls 4

getTypenameFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected