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

Method serialize

pdal/Stage.cpp:86–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86void Stage::serialize(MetadataNode root, PipelineWriter::TagMap& tags) const
87{
88 for (Stage *s : m_inputs)
89 s->serialize(root, tags);
90
91 auto tagname = [tags](const Stage *s)
92 {
93 const auto ti = tags.find(s);
94 return ti->second;
95 };
96
97 MetadataNode anon("pipeline");
98 anon.add("type", getName());
99 anon.add("tag", tagname(this));
100 m_options.toMetadata(anon);
101 for (Stage *s : m_inputs)
102 anon.addList("inputs", tagname(s));
103 root.addList(anon);
104}
105
106void Stage::addAllArgs(ProgramArgs& args)
107{

Callers 1

writePipelineFunction · 0.80

Calls 4

getNameFunction · 0.50
findMethod · 0.45
addMethod · 0.45
toMetadataMethod · 0.45

Tested by

no test coverage detected