#include <OgreScriptCompiler.h>
Public Member Functions | |
ScriptCompilerListener () | |
virtual | ~ScriptCompilerListener () |
virtual ConcreteNodeListPtr | importFile (ScriptCompiler *compiler, const String &name) |
Returns the concrete node list from the given file. | |
virtual void | preConversion (ScriptCompiler *compiler, ConcreteNodeListPtr nodes) |
Allows for responding to and overriding behavior before a CST is translated into an AST. | |
virtual bool | postConversion (ScriptCompiler *compiler, const AbstractNodeListPtr &) |
Allows vetoing of continued compilation after the entire AST conversion process finishes. | |
virtual void | handleError (ScriptCompiler *compiler, uint32 code, const String &file, int line, const String &msg) |
Called when an error occurred. | |
virtual bool | handleEvent (ScriptCompiler *compiler, const String &name, const std::vector< Ogre::Any > &args, Ogre::Any *retval) |
Called when an event occurs during translation, return true if handled. | |
virtual Ogre::Any | createObject (ScriptCompiler *compiler, const String &type, const std::vector< Ogre::Any > &args) |
Called when a translator requests a concrete object to be created. |
The compiler can be customized with this listener. It lets you listen in on events occuring during compilation, hook them, and change the behavior.
Definition at line 319 of file OgreScriptCompiler.h.
Ogre::ScriptCompilerListener::ScriptCompilerListener | ( | ) |
virtual Ogre::ScriptCompilerListener::~ScriptCompilerListener | ( | ) | [virtual] |
Definition at line 323 of file OgreScriptCompiler.h.
virtual ConcreteNodeListPtr Ogre::ScriptCompilerListener::importFile | ( | ScriptCompiler * | compiler, | |
const String & | name | |||
) | [virtual] |
Returns the concrete node list from the given file.
virtual void Ogre::ScriptCompilerListener::preConversion | ( | ScriptCompiler * | compiler, | |
ConcreteNodeListPtr | nodes | |||
) | [virtual] |
Allows for responding to and overriding behavior before a CST is translated into an AST.
virtual bool Ogre::ScriptCompilerListener::postConversion | ( | ScriptCompiler * | compiler, | |
const AbstractNodeListPtr & | ||||
) | [virtual] |
Allows vetoing of continued compilation after the entire AST conversion process finishes.
virtual void Ogre::ScriptCompilerListener::handleError | ( | ScriptCompiler * | compiler, | |
uint32 | code, | |||
const String & | file, | |||
int | line, | |||
const String & | msg | |||
) | [virtual] |
Called when an error occurred.
virtual bool Ogre::ScriptCompilerListener::handleEvent | ( | ScriptCompiler * | compiler, | |
const String & | name, | |||
const std::vector< Ogre::Any > & | args, | |||
Ogre::Any * | retval | |||
) | [virtual] |
Called when an event occurs during translation, return true if handled.
virtual Ogre::Any Ogre::ScriptCompilerListener::createObject | ( | ScriptCompiler * | compiler, | |
const String & | type, | |||
const std::vector< Ogre::Any > & | args | |||
) | [virtual] |
Called when a translator requests a concrete object to be created.
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:06:46 2009