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

Method _verifyPathNameAbsolute

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

Source from the content-addressed store, hash-verified

393
394#ifdef VALIDATE_BASIC
395bool NodeImpl::_verifyPathNameAbsolute( const ustring &inPathName )
396{
397 checkImageFileOpen( __FILE__, __LINE__, static_cast<const char *>( __FUNCTION__ ) );
398
399 // Parse to determine if pathName is absolute
400 bool isRelative = false;
401 std::vector<ustring> fields;
402 ImageFileImplSharedPtr imf( destImageFile_ );
403
404 imf->pathNameParse( inPathName, isRelative,
405 fields ); // throws if bad pathName
406
407 // If not an absolute path name, have error
408 if ( isRelative )
409 {
410 throw E57_EXCEPTION2( ErrorBadPathName,
411 "this->pathName=" + this->pathName() + " pathName=" + inPathName );
412 }
413
414 return false;
415}
416#endif
417
418NodeImplSharedPtr NodeImpl::_verifyAndGetRoot()

Callers

nothing calls this directly

Calls 2

pathNameMethod · 0.95
pathNameParseMethod · 0.80

Tested by

no test coverage detected