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

Function arrayToJSON

pdal/PDALUtils.cpp:89–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void arrayToJSON(const MetadataNodeList& children, std::ostream& o, int level)
90{
91 const std::string indent(level * 2, ' ');
92
93 o << indent << "[" << std::endl;
94 for (auto ci = children.begin(); ci != children.end(); ++ci)
95 {
96 const MetadataNode& m = *ci;
97
98 arrayEltToJSON(m, o, level + 1);
99 if (ci != children.rbegin().base() - 1)
100 o << ",";
101 o << std::endl;
102 }
103 o << indent << "]";
104}
105
106void arrayEltToJSON(const MetadataNode& m, std::ostream& o, int level)
107{

Callers 2

subnodesToJSONFunction · 0.85
toJSONFunction · 0.85

Calls 4

arrayEltToJSONFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
baseMethod · 0.45

Tested by

no test coverage detected