RobWorkProject  23.9.11-
Classes | Public Types | Public Member Functions | List of all members
LuaState Class Reference

a robwork wrapper for the lua_State struct. The standard robwork lua libs will be initialized automatically. Also this provides an extension point for adding user defined lua enabled libraries. More...

#include <LuaState.hpp>

Classes

class  Factory
 a factory for LuaLibrary. This factory also defines an extension point for LuaLibraries. This permit users to define extensions to the lua interfaces through RobWork extension. More...
 
struct  LuaLibrary
 

Public Types

typedef rw::core::Ptr< LuaStatePtr
 smart pointer type of LuaState
 

Public Member Functions

 LuaState ()
 constructor
 
virtual ~LuaState ()
 destructor
 
void reset ()
 reset this luastate
 
int runCmd (const std::string &str)
 run a lua command block
 
void addLibrary (LuaLibrary::Ptr lib)
 when the LuaState is reset all library constributers will be asked to add their libraries to the state again.
 
void removeLibrary (const std::string &id)
 remove specific library from luastate
 
lua_State * get ()
 get the lua_State
 

Detailed Description

a robwork wrapper for the lua_State struct. The standard robwork lua libs will be initialized automatically. Also this provides an extension point for adding user defined lua enabled libraries.


The documentation for this class was generated from the following file: