The Lua plugin enables you to program Kanzi applications using the Lua programming language. More...
#include <kanzi/lua/lua_module.hpp>
Static Public Member Functions | |
| static LuaModule * | get (Domain *domain) |
| Returns the LuaModule loaded on the given domain or nullptr if the domain does not contain the module. | |
| static void | registerModule (Domain *domain) |
| Registers the Lua module to the current domain. | |
Protected Attributes | |
| LuaInstancePtr | m_lua |
| The Lua instance. | |
Protected Attributes inherited from kanzi::interop::LanguagePlugin | |
| unique_ptr< LanguageDirector > | m_director |
| LanguageDataProxy | m_languageData |
Protected Attributes inherited from kanzi::Module | |
| Domain * | m_domain |
| The domain this module is registered to. | |
Additional Inherited Members | |
Public Types inherited from kanzi::Module | |
| typedef vector< const Metaclass * > | MetaclassContainer |
| typedef MetaclassContainer::iterator | MetaclassIterator |
Protected Member Functions inherited from kanzi::Module | |
| virtual | ~Module ()=default |
| Destructor. | |
The Lua plugin enables you to program Kanzi applications using the Lua programming language.
The plugin contains the LuaInstance, which enables you to load and execute Lua scripts.
|
inlineexplicit |
Constructor.
|
overridedefault |
Destructor.
Registers the Lua module to the current domain.
| domain | The domain to which you want the Lua module to belong. |
| LuaInstance & kanzi::LuaModule::getOrInitLua | ( | ) |
Initializes the Lua instance if it does not exist.
| void kanzi::LuaModule::freeLua | ( | ) |
Frees the Lua instance.
|
overridevirtual |
Module::getMetaclassesOverride() implementation.
Reimplemented from kanzi::Module.
|
protected |
The Lua instance.