MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / loadImportPath

Method loadImportPath

OgreMain/src/OgreScriptCompiler.cpp:554–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552 }
553
554 AbstractNodeListPtr ScriptCompiler::loadImportPath( const Ogre::String &name )
555 {
556 AbstractNodeListPtr retval;
557 ConcreteNodeListPtr nodes;
558
559 if( mListener )
560 nodes = mListener->importFile( this, name );
561
562 if( !nodes && ResourceGroupManager::getSingletonPtr() )
563 {
564 DataStreamPtr stream = ResourceGroupManager::getSingleton().openResource( name, mGroup );
565 if( stream )
566 {
567 ScriptLexer lexer;
568 ScriptParser parser;
569 nodes = parser.parse( lexer.tokenize( stream->getAsString() ), name );
570 }
571 }
572
573 if( nodes )
574 retval = convertToAST( nodes );
575
576 return retval;
577 }
578
579 AbstractNodeListPtr ScriptCompiler::locateTarget( AbstractNodeList *nodes,
580 const Ogre::String &target )

Callers

nothing calls this directly

Calls 5

importFileMethod · 0.80
openResourceMethod · 0.80
tokenizeMethod · 0.80
getAsStringMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected