OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Types | Private Attributes | List of all members
MWScript::ScriptManager Class Reference

#include <scriptmanagerimp.hpp>

Inheritance diagram for MWScript::ScriptManager:
Collaboration diagram for MWScript::ScriptManager:

Public Member Functions

 ScriptManager (const MWWorld::ESMStore &store, bool verbose, Compiler::Context &compilerContext, int warningsMode, const std::vector< std::string > &scriptBlacklist)
 
virtual void run (const std::string &name, Interpreter::Context &interpreterContext)
 Run the script with the given name (compile first, if not compiled yet) More...
 
virtual bool compile (const std::string &name)
 
virtual std::pair< int, intcompileAll ()
 
virtual const Compiler::LocalsgetLocals (const std::string &name)
 Return locals for script name. More...
 
virtual GlobalScriptsgetGlobalScripts ()
 
- Public Member Functions inherited from MWBase::ScriptManager
 ScriptManager ()
 
virtual ~ScriptManager ()
 

Private Types

typedef std::pair< std::vector
< Interpreter::Type_Code >
, Compiler::Locals
CompiledScript
 
typedef std::map< std::string,
CompiledScript
ScriptCollection
 

Private Attributes

Compiler::StreamErrorHandler mErrorHandler
 
const MWWorld::ESMStoremStore
 
bool mVerbose
 
Compiler::ContextmCompilerContext
 
Compiler::FileParser mParser
 
Interpreter::Interpreter mInterpreter
 
bool mOpcodesInstalled
 
ScriptCollection mScripts
 
GlobalScripts mGlobalScripts
 
std::map< std::string,
Compiler::Locals
mOtherLocals
 
std::vector< std::string > mScriptBlacklist
 

Member Typedef Documentation

typedef std::map<std::string, CompiledScript> MWScript::ScriptManager::ScriptCollection
private

Constructor & Destructor Documentation

MWScript::ScriptManager::ScriptManager ( const MWWorld::ESMStore store,
bool  verbose,
Compiler::Context compilerContext,
int  warningsMode,
const std::vector< std::string > &  scriptBlacklist 
)

Here is the call graph for this function:

Member Function Documentation

bool MWScript::ScriptManager::compile ( const std::string &  name)
virtual

Compile script with the given namen

Returns
Success?

Implements MWBase::ScriptManager.

Here is the call graph for this function:

Here is the caller graph for this function:

std::pair< int, int > MWScript::ScriptManager::compileAll ( )
virtual

Compile all scripts

Returns
count, success

Implements MWBase::ScriptManager.

Here is the call graph for this function:

GlobalScripts & MWScript::ScriptManager::getGlobalScripts ( )
virtual

Implements MWBase::ScriptManager.

const Compiler::Locals & MWScript::ScriptManager::getLocals ( const std::string &  name)
virtual

Return locals for script name.

Implements MWBase::ScriptManager.

Here is the call graph for this function:

void MWScript::ScriptManager::run ( const std::string &  name,
Interpreter::Context interpreterContext 
)
virtual

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

Implements MWBase::ScriptManager.

Here is the call graph for this function:

Member Data Documentation

Compiler::Context& MWScript::ScriptManager::mCompilerContext
private
Compiler::StreamErrorHandler MWScript::ScriptManager::mErrorHandler
private
GlobalScripts MWScript::ScriptManager::mGlobalScripts
private
Interpreter::Interpreter MWScript::ScriptManager::mInterpreter
private
bool MWScript::ScriptManager::mOpcodesInstalled
private
std::map<std::string, Compiler::Locals> MWScript::ScriptManager::mOtherLocals
private
Compiler::FileParser MWScript::ScriptManager::mParser
private
std::vector<std::string> MWScript::ScriptManager::mScriptBlacklist
private
ScriptCollection MWScript::ScriptManager::mScripts
private
const MWWorld::ESMStore& MWScript::ScriptManager::mStore
private
bool MWScript::ScriptManager::mVerbose
private

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