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. | |
MetaclassContainer | getMetaclassesOverride () override |
Module::getMetaclassesOverride() implementation. | |
LuaInstance & | getOrInitLua () |
Initializes the Lua instance if it does not exist. | |
LuaModule ()=default | |
Constructor. | |
~LuaModule () override=default | |
Destructor. | |
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. | |
virtual void | registerMetadataOverride (ObjectFactory &) |
Registers the rest of the module metadata, such as loaders for types in the module. | |
void | setDomain (Domain *domain) |
Sets the domain. | |
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::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.
|
explicitdefault |
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.