Script manager.
More...
#include <ScriptManager.h>
List of all members.
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
Returns a list of the names of the supported script languages.
- Returns:
- List of the names of the supported script languages
Returns the name of a script language by it's filename extension.
- Parameters:
-
[in] | sExtension | Script language filename extension to check (e.g. "js") |
- Returns:
- Script language, empty string on error (possibly not supported filename extension)
Checks whether or not a given script language is supported.
- Parameters:
-
[in] | sScriptLanguage | Script language to check |
- Returns:
- 'true' if the given script language is supported, else 'false'
Returns the filename extension of a given script language.
- Parameters:
-
[in] | sScriptLanguage | Script language to return the filename extension from |
- Returns:
- The filename extension of the given script language, empty string on error (possibly not supported script language)
- Note:
- If the script language has more than one filename extension, the first filename extension will be returned
Returns a list of all script binding instances.
- Returns:
- List of all script binding instances
Creates a script instance.
- Parameters:
-
[in] | sScriptLanguage | Script language to use |
[in] | bAddBindings | If 'true', add all available script bindings automatically (see "Script::AddBindings()") |
- Returns:
- The created script instance, null pointer on error
Creates a script instance by using a given filename.
- Parameters:
-
[in] | sFilename | Script filename |
[in] | bAddBindings | If 'true', add all available script bindings automatically (see "Script::AddBindings()") |
[in] | nStringFormat | String encoding format to use when dealing with string functions (not supported by all file implementations) |
- Returns:
- The created script instance, null pointer on error (Unknown filename extension? File not found? Error within the script?)
- Note:
- Convenience method
- It's not recommended to use Unicode by because internally wchar_t is used and this data type has not the same size on every platform (use ASCII or UTF8 instead)
The documentation for this class was generated from the following files: