| 76 | } |
| 77 | |
| 78 | ustring 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 | |
| 97 | ustring NodeImpl::relativePathName( const NodeImplSharedPtr &origin, ustring childPathName ) const |
| 98 | { |
no test coverage detected