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

Method _verifyAndGetRoot

plugins/e57/libE57Format/src/NodeImpl.cpp:418–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416#endif
417
418NodeImplSharedPtr NodeImpl::_verifyAndGetRoot()
419{
420 // Find root of the tree
421 NodeImplSharedPtr root( shared_from_this()->getRoot() );
422
423 // Check to make sure root node is non-terminal type (otherwise have stack overflow).
424 switch ( root->type() )
425 {
426 case TypeStructure:
427 case TypeVector: //??? COMPRESSED_VECTOR?
428 break;
429 default:
430 throw E57_EXCEPTION2( ErrorInternal,
431 "root invalid for this->pathName=" + this->pathName() );
432 }
433
434 return root;
435}

Callers

nothing calls this directly

Calls 3

pathNameMethod · 0.95
getRootMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected