Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

mortic::IScriptManager Class Reference

A script manager for loading scripts. More...

Inheritance diagram for mortic::IScriptManager:

mortic::IObject List of all members.

Public Member Functions

 IScriptManager (IRoot *root)
 Constructor.
virtual ~IScriptManager ()
 Destructor.
virtual IScriptcreateScript (std::string filename)=0
 Load a script from file.
virtual IScriptcreateScriptFromString (std::string script)=0
 Load a script from string.

Detailed Description

A script manager for loading scripts.

Mortic has python functionality built-in, and this is how you access it. This class loads scripts from file and from string, and allows you to execute them in their own private namespace, so to avoid name collisions. This system is suprisingly simple, yet powerful.

See also:
IScript

Definition at line 126 of file IScriptManager.h.


Constructor & Destructor Documentation

mortic::IScriptManager::IScriptManager IRoot root  )  [inline]
 

Constructor.

Definition at line 130 of file IScriptManager.h.

virtual mortic::IScriptManager::~IScriptManager  )  [inline, virtual]
 

Destructor.

Definition at line 133 of file IScriptManager.h.


Member Function Documentation

virtual IScript* mortic::IScriptManager::createScript std::string  filename  )  [pure virtual]
 

Load a script from file.

This function loads a script to run from file.

  • filename - the name of the file to load
    Returns:
    an IScript that pertains to your script

virtual IScript* mortic::IScriptManager::createScriptFromString std::string  script  )  [pure virtual]
 

Load a script from string.

This function loads the string given just like a file.

  • script - the string to load as a script
    Returns:
    an IScript that pertains to your script


Generated on Sat Dec 30 21:21:59 2006 for mortic by  doxygen 1.4.4