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

Method pathName

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

Source from the content-addressed store, hash-verified

76}
77
78ustring NodeImpl::pathName() const
79{
80 checkImageFileOpen( __FILE__, __LINE__, static_cast<const char *>( __FUNCTION__ ) );
81
82 if ( isRoot() )
83 {
84 return ( "/" );
85 }
86
87 NodeImplSharedPtr p( parent_ );
88
89 if ( p->isRoot() )
90 {
91 return ( "/" + elementName_ );
92 }
93
94 return ( p->pathName() + "/" + elementName_ );
95}
96
97ustring NodeImpl::relativePathName( const NodeImplSharedPtr &origin, ustring childPathName ) const
98{

Callers 4

setParentMethod · 0.95
checkBuffersMethod · 0.95
_verifyAndGetRootMethod · 0.95

Calls 1

isRootMethod · 0.45

Tested by

no test coverage detected