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

Function printChildren

test/unit/filters/HexbinFilterTest.cpp:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52using namespace pdal;
53
54void printChildren(std::ostream& out, MetadataNode m, int depth = 0)
55{
56 std::vector<MetadataNode> children = m.children();
57 for (auto mi = children.begin(); mi != children.end(); ++mi)
58 {
59 MetadataNode& c = *mi;
60 for (int i = 0; i < depth; i++)
61 out << "\t";
62 out << c.name() << " : " << c.value() << "\n";
63 printChildren(out, c, depth + 1);
64 }
65}
66
67TEST(HexbinFilterTest, HexbinFilterTest_test_1)
68{

Callers 1

TESTFunction · 0.85

Calls 4

beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected