The Lua plugin enables you to program Kanzi applications using the Lua programming language. More...
#include <kanzi/lua/lua_module.hpp>
Public Member Functions | |
void | freeLua () |
Frees the Lua instance. More... | |
MetaclassContainer | getMetaclassesOverride () override |
Module::getMetaclassesOverride() implementation. More... | |
LuaInstance & | getOrInitLua () |
Initializes the Lua instance if it does not exist. More... | |
LuaModule ()=default | |
Constructor. More... | |
~LuaModule () override=default | |
Destructor. More... | |
Public Member Functions inherited from kanzi::Plugin | |
Plugin () | |
Public Member Functions inherited from kanzi::Module | |
virtual void | destroy () |
Module () | |
virtual void | registerDebugRenderingFunctions (DebugRenderRegistry &) |
Registers the debug rendering functions of the module. More... | |
virtual void | registerMetadataOverride (ObjectFactory &) |
Registers the rest of the module metadata, such as loaders for types in the module. More... | |
void | setDomain (Domain *domain) |
Sets the domain. More... | |
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. More... | |
static void | registerModule (Domain *domain) |
Registers the Lua module to the current domain. More... | |
Protected Attributes | |
LuaInstancePtr | m_lua |
The Lua instance. More... | |
Protected Attributes inherited from kanzi::Module | |
Domain * | m_domain |
The domain this module is registered to. More... | |
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. More... | |
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.
|
explicitdefault |
Constructor.
|
overridedefault |
Destructor.
|
static |
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.