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

Method assertElementIs

io/Ilvis2MetadataReader.cpp:646–651  ·  view source on GitHub ↗

Throws an error if the next element is not what it expects

Source from the content-addressed store, hash-verified

644
645// Throws an error if the next element is not what it expects
646void Ilvis2MetadataReader::assertElementIs(xmlNodePtr node, std::string expected)
647{
648 if (!node || !nodeElementIs(node, expected))
649 throw error("Expected element '" + expected + "', found '" +
650 std::string((const char *)node->name) + "'");
651}
652
653
654// Throws an error if the node is not null

Callers

nothing calls this directly

Calls 1

errorClass · 0.70

Tested by

no test coverage detected