OpenMW
Public Member Functions | Private Member Functions
MWBase::ScriptManager Class Reference

Interface for script manager (implemented in MWScript) More...

#include <scriptmanager.hpp>

List of all members.

Public Member Functions

 ScriptManager ()
virtual ~ScriptManager ()
virtual void resetGlobalScripts ()=0
virtual void run (const std::string &name, Interpreter::Context &interpreterContext)=0
 Run the script with the given name (compile first, if not compiled yet)
virtual bool compile (const std::string &name)=0
virtual std::pair< int, int > compileAll ()=0
virtual Compiler::LocalsgetLocals (const std::string &name)=0
 Return locals for script name.
virtual MWScript::GlobalScriptsgetGlobalScripts ()=0
virtual int getLocalIndex (const std::string &scriptId, const std::string &variable, char type)=0

Private Member Functions

 ScriptManager (const ScriptManager &)
 not implemented
ScriptManageroperator= (const ScriptManager &)
 not implemented

Detailed Description

Interface for script manager (implemented in MWScript)


Constructor & Destructor Documentation

not implemented

virtual MWBase::ScriptManager::~ScriptManager ( ) [inline, virtual]

Member Function Documentation

virtual bool MWBase::ScriptManager::compile ( const std::string &  name) [pure virtual]

Compile script with the given namen

Returns:
Success?

Implemented in MWScript::ScriptManager.

virtual std::pair<int, int> MWBase::ScriptManager::compileAll ( ) [pure virtual]

Compile all scripts

Returns:
count, success

Implemented in MWScript::ScriptManager.

Implemented in MWScript::ScriptManager.

virtual int MWBase::ScriptManager::getLocalIndex ( const std::string &  scriptId,
const std::string &  variable,
char  type 
) [pure virtual]

Return index of the variable of the given name and type in the given script. Will throw an exception, if there is no such script or variable or the type does not match.

Implemented in MWScript::ScriptManager.

virtual Compiler::Locals& MWBase::ScriptManager::getLocals ( const std::string &  name) [pure virtual]

Return locals for script name.

Implemented in MWScript::ScriptManager.

ScriptManager& MWBase::ScriptManager::operator= ( const ScriptManager ) [private]

not implemented

virtual void MWBase::ScriptManager::resetGlobalScripts ( ) [pure virtual]

Implemented in MWScript::ScriptManager.

virtual void MWBase::ScriptManager::run ( const std::string &  name,
Interpreter::Context interpreterContext 
) [pure virtual]

Run the script with the given name (compile first, if not compiled yet)

Implemented in MWScript::ScriptManager.


The documentation for this class was generated from the following file: