MCPcopy Create free account
hub / github.com/cdcseacave/openMVS / LoadFile

Method LoadFile

libs/IO/TinyXML2.cpp:2313–2330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2311
2312
2313XMLError XMLDocument::LoadFile( const char* filename )
2314{
2315 if ( !filename ) {
2316 TIXMLASSERT( false );
2317 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=<null>" );
2318 return _errorID;
2319 }
2320
2321 Clear();
2322 FILE* fp = callfopen( filename, "rb" );
2323 if ( !fp ) {
2324 SetError( XML_ERROR_FILE_NOT_FOUND, 0, "filename=%s", filename );
2325 return _errorID;
2326 }
2327 LoadFile( fp );
2328 fclose( fp );
2329 return _errorID;
2330}
2331
2332XMLError XMLDocument::LoadFile( FILE* fp )
2333{

Callers

nothing calls this directly

Calls 1

callfopenFunction · 0.85

Tested by

no test coverage detected