MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / LoadFile

Method LoadFile

3rdparty/tinyxml2/tinyxml2.cpp:2344–2361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2342
2343
2344XMLError XMLDocument::LoadFile( const char* filename )
2345{
2346 if ( !filename ) {
2347 TIXMLASSERT( false );
2348 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=<null>" );
2349 return _errorID;
2350 }
2351
2352 Clear();
2353 FILE* fp = callfopen( filename, "rb" );
2354 if ( !fp ) {
2355 SetError( XML_ERROR_FILE_NOT_FOUND, 0, "filename=%s", filename );
2356 return _errorID;
2357 }
2358 LoadFile( fp );
2359 fclose( fp );
2360 return _errorID;
2361}
2362
2363XMLError XMLDocument::LoadFile( FILE* fp )
2364{

Callers 3

loadFromFileMethod · 0.80
loadDocImplMethod · 0.80
createTreeFromFileMethod · 0.80

Calls 1

callfopenFunction · 0.85

Tested by

no test coverage detected