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

Method loadAddon

io/private/ept/Addon.cpp:131–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131Addon Addon::loadAddon(const connector::Connector& connector,
132 const std::string& dimName, const std::string& filename)
133{
134 NL::json info = connector.getJson(filename);
135 std::string typestring = info["type"].get<std::string>();
136 uint64_t size = info["size"].get<uint64_t>();
137 Dimension::Type type = Dimension::type(typestring, size);
138
139 return Addon(dimName, filename, type);
140}
141
142} // namespace ept
143} // namespace pdal

Callers

nothing calls this directly

Calls 3

getJsonMethod · 0.80
AddonClass · 0.70
typeFunction · 0.50

Tested by

no test coverage detected